amahi / amahi-anywhere-fs

Amahi Anywhere file server
GNU General Public License v3.0
12 stars 10 forks source link

added check for escaped file paths #22

Closed vishwasmittal closed 5 years ago

vishwasmittal commented 5 years ago

Fixes #21

vishwasmittal commented 5 years ago

@cpg it will check for file names containing the escape characters as well. So, if the request is something like: /files?s=shareName;p=path+name, it will check for file/folder named path+name if found, return it else will check for path name and follow the standard procedure.

cpg commented 5 years ago

Ugh, actually, this does not appear to work for a folder named like this: A + B

vishwasmittal commented 5 years ago

@cpg yeah, you are right it does fail these cases. I can see an easy way out but it depends on whether you want it just for the + symbol or for other symbols as well (if yes then specify the other symbols too).

cpg commented 5 years ago

I should point out that the failure at the moment appears to be due to the space. A+B works, however, A + B fails. Space was not a problem before.