Forum

Number sign (#) not escaped in directory listing links!

James
15 October 2015, 18:06
On my web server, I have a file. its file name is (sans quotes): "TND Podcast #17 ft. George Miller a.k.a. Filthy Frank-z6UYz2eNoS8.ogg"

I can see it in the directory listing, but clicking on it gives me a 404 file not found error.
James
15 October 2015, 18:07
If I go into the URL, select the #, and replace it with a %23:
http://localhost/~james/TND%20Podcast%20%2317%20ft.%20George%20Miller%20a.k.a.%20Filthy%20Frank-z6UYz2eNoS8.ogg

it works.

Using Inspect Element on the link can be similarly used before clicking.
Hugo Leisink
15 October 2015, 22:37
Edit index.xslt in your hiawatha configuration directory and change line 136 to:
<td class="{@type}"><a href="{@url_encoded}"><xsl:value-of select="." /></a></td>
This topic has been closed.