tjcsl / ion

TJ Intranet 3
https://ion.tjhsst.edu
GNU General Public License v2.0
99 stars 91 forks source link

Filecenter cannot download files with an ampersand in the name #452

Closed an-empty-string closed 8 years ago

an-empty-string commented 8 years ago

Whenever someone tries to download a file with an ampersand in its name, the ampersand is added to the URL, like this:

https://ion.tjhsst.edu/files/tj03_r?file=/R/GeoSystems/!!Stickler/Geology/Volcano%20Lab/Notes%20on%20Volcano%20Properties%20&%20Formation.doc

The ampersand acts as a separator for GET parameters instead of acting as part of a filename. The result is that files with ampersands in the name can't be downloaded.

pefoley2 commented 8 years ago

Sigh, looks like we need a bit more urlescape()