eprints / eprints3.4

EPrints 3.4 core and releases
http://www.eprints.org/uk/index.php/eprints-3-4/
GNU Lesser General Public License v3.0
31 stars 28 forks source link

Problems with document filenames that look URL encoded #397

Closed drn05r closed 3 months ago

drn05r commented 3 months ago

If someone uploads a file with the filename hello%20world.pdf. This will appear correct in the database and on the filesystem and the URLs generated for it will be correct and URL encode the % to %25 but if the URL is redirected this URL encoding will be lost and then EPrints will look for the file hello world.pdf on disk rather than hello%20world.pdf on disk. This has been observed happening when $c->{use_long_url_format} = 1; but the URL present rendered is a short URL. The process or redirecting to the long URL remove one level of URL encoding but does re-encode it later.

drn05r commented 3 months ago

This has already been fixed by #263.