diff options
author | Bart Visscher <bartv@thisnet.nl> | 2012-11-16 12:58:24 +0100 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2012-11-16 16:12:28 +0100 |
commit | 20c24f234f832b326d935b59d1f6c1fa5f854313 (patch) | |
tree | f27bf2d69941e664fa68724824d96995a36e3d77 /apps/files/templates | |
parent | d1c0f2a7393d82629bec961e056856846bd05465 (diff) | |
download | nextcloud-server-20c24f234f832b326d935b59d1f6c1fa5f854313.tar.gz nextcloud-server-20c24f234f832b326d935b59d1f6c1fa5f854313.zip |
Do the url encoding once, only in breadcrumbs template
fixes issue #438
Diffstat (limited to 'apps/files/templates')
-rw-r--r-- | apps/files/templates/part.breadcrumb.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/files/templates/part.breadcrumb.php b/apps/files/templates/part.breadcrumb.php index ead9ab1ed7d..ba1432c1b8f 100644 --- a/apps/files/templates/part.breadcrumb.php +++ b/apps/files/templates/part.breadcrumb.php @@ -1,6 +1,7 @@ <?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> + $crumb = $_["breadcrumb"][$i]; + $dir = str_replace('+','%20', urlencode($crumb["dir"])); ?> + <div class="crumb <?php if($i == count($_["breadcrumb"])-1) echo 'last';?> svg" data-dir='<?php echo $dir;?>' style='background-image:url("<?php echo OCP\image_path('core', 'breadcrumb.png');?>")'> + <a href="<?php echo $_['baseURL'].$dir; ?>"><?php echo OCP\Util::sanitizeHTML($crumb["name"]); ?></a> </div> <?php endfor;?> |