diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2012-12-30 08:56:32 -0800 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2012-12-30 08:56:32 -0800 |
commit | f70f9f3bc4ae85610891086e6652290db6b6c667 (patch) | |
tree | 44a8475790775375aebebc503bfe1bb87ebf5ad5 | |
parent | 66e57f5fb1ed509761dededfecdf2ebc63738453 (diff) | |
parent | b5b48428ab359c92c63f41a80e32a17714f914d0 (diff) | |
download | nextcloud-server-f70f9f3bc4ae85610891086e6652290db6b6c667.tar.gz nextcloud-server-f70f9f3bc4ae85610891086e6652290db6b6c667.zip |
Merge pull request #1043 from owncloud/fix_breadcrumb_slashes
Replace %2F with / in breadcrumbs
-rw-r--r-- | apps/files/templates/part.breadcrumb.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/files/templates/part.breadcrumb.php b/apps/files/templates/part.breadcrumb.php index f7b1a6076d8..a298f1ccc4b 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]; - $dir = str_replace('+', '%20', urlencode($crumb["dir"])); ?> + $crumb = $_["breadcrumb"][$i]; + $dir = str_replace('+', '%20', urlencode($crumb["dir"])); + $dir = str_replace('%2F', '/', $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');?>")'> |