]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix urlencoding in the breadcrumb
authorLukas Reschke <lukas@statuscode.ch>
Tue, 23 Oct 2012 15:50:36 +0000 (17:50 +0200)
committerLukas Reschke <lukas@statuscode.ch>
Tue, 23 Oct 2012 15:50:36 +0000 (17:50 +0200)
apps/files/templates/part.breadcrumb.php

index 71b695f65f8198e57b2b15d8d486391ff3862b84..b75efb64d1be289f7da9afacace94788f9e6f809 100644 (file)
@@ -1,6 +1,6 @@
        <?php for($i=0; $i<count($_["breadcrumb"]); $i++):
         $crumb = $_["breadcrumb"][$i]; ?>
                <div class="crumb <?php if($i == count($_["breadcrumb"])-1) echo 'last';?> svg" data-dir='<?php echo urlencode($crumb["dir"]);?>' style='background-image:url("<?php echo OCP\image_path('core','breadcrumb.png');?>")'>
-               <a href="<?php echo $_['baseURL'].urlencode($crumb["dir"]); ?>"><?php echo OCP\Util::sanitizeHTML($crumb["name"]); ?></a>
+               <a href="<?php echo urlencode($_['baseURL'].$crumb["dir"]); ?>"><?php echo OCP\Util::sanitizeHTML($crumb["name"]); ?></a>
                </div>
        <?php endfor;?>