Don't escape foldername too much
authorJean-Michel Vourgère <jvourger@greenpeace.org>
Thu, 9 Mar 2017 17:15:17 +0000 (17:15 +0000)
committerJean-Michel Vourgère <jvourger@greenpeace.org>
Thu, 9 Mar 2017 18:06:31 +0000 (18:06 +0000)
templates/index.tpl

index 58ce19b76656fc98df5b66ef72a59a1e6ea2e4ab..daa4691d92b7861293b8a112d90ff0a488043a38 100644 (file)
@@ -46,7 +46,7 @@
 {block menu}
 <div class="menu">
        <div class="menuhead">current folder</div>
-       {foreach item=crumb key=cookie from=$base}<a href="?path={$cookie|escape:'url'}">{$crumb|escape}</a>{/foreach}
+       {foreach item=crumb key=cookie from=$base}<a href="?path={$cookie|escape:'urlpathinfo'}">{$crumb|escape}</a>{/foreach}
        {if $user_level > 99 AND count($base)>1 }
                <form name=rmdir method=post>
                <input type=hidden name=tools value=rmdir>
@@ -56,7 +56,7 @@
 </div>
 <div class="menu">
        <div class="menuhead">subfolders</div>
-       {foreach item=folder key=folderpath from=$subfolders}<a href="?path={$folderpath|escape:'url'}">{$folder|escape}</a>{/foreach}
+       {foreach item=folder key=folderpath from=$subfolders}<a href="?path={$folderpath|escape:'urlpathinfo'}">{$folder|escape}</a>{/foreach}
        {if $user_level > 99}
                <form name=mkdir method=post>
                <input type=hidden name=tools value=mkdir>