davros
davros copied to clipboard
'#' in file and folder names causes problems
If I enter a folder name in the web interface containing #, everything after # is ignored (treated as a comment?). If a file or folder is synced from the local folder using owncloud, it shows up in the web interface, but clicking on it leads to a 404.
Happens for me too. Unfortunately i put some files containing # to one of my davros installs via sync client (Syncovery) but am not able to delete of view or download them afterwards, although they exist physically. WebUI and sync client cannot acces them. (Tried both).
&
is another character that causes problems. Also related to #15.
These are characters that have special meaning in URLs; I would hazard a guess that fixing this is just a matter of putting encodeURIComponent
/decodeURIComponent
in the right places.
I see the issue; generally we automatically uri-encode things but creating a new directory puts the new directory name in the path of a MKCOL. Should be a straightforward fix.
Fyi, for me the &
was in a filename, not a folder name. (Specifically, I uploaded a file named b&w.png
, but clicking on it led to a 404.)