Commit 4c1df9c1 authored by Antoine Cellerier's avatar Antoine Cellerier

Fix browsing directories containing the '&' character

parent 86385f84
......@@ -931,7 +931,7 @@ function browse( dest )
function browse_dir( dir )
{
document.getElementById( 'browse_lastdir' ).value = dir;
loadXMLDoc( 'requests/browse.xml?dir='+dir, parse_browse_dir );
loadXMLDoc( 'requests/browse.xml?dir='+escape(dir), parse_browse_dir );
}
function browse_path( p )
{
......
......@@ -29,7 +29,7 @@
<vlc id="rpn" param1="'dir' url_extract" />
<vlc id="foreach" param1="file" param2="directory" />
<vlc id="if" param1="file.basename value '.' 1 strncmp 0 != file.basename value '..' 2 strncmp 0 = |" />
<element type="<vlc id="value" param1="file.type" />" size="<vlc id="value" param1="file.size" />" date="<vlc id="value" param1="file.size" />" path="<vlc id="value" param1="file.name" />" name="<vlc id="value" param1="file.basename" />" />
<element type="<vlc id="value" param1="file.type" />" size="<vlc id="value" param1="file.size" />" date="<vlc id="value" param1="file.size" />" path="<vlc id="value" param1="file.name value htmlspecialchars" />" name="<vlc id="value" param1="file.basename value htmlspecialchars" />" />
<vlc id="end" />
<vlc id="end" />
<vlc id="end" />
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment