diff options
author | Vitaly Kuznetsov <vitty@altlinux.ru> | 2012-05-10 09:10:53 +0000 |
---|---|---|
committer | Vitaly Kuznetsov <vitty@altlinux.ru> | 2012-05-10 09:10:53 +0000 |
commit | 6f981738bb5285d01e839ff640c163acf1b2a184 (patch) | |
tree | 47040a95a2597de34784151dfaec334b2e034923 /apps/files/templates/part.breadcrumb.php | |
parent | a9d7c67bf2e906fceea40b41f4780e623226fdff (diff) | |
download | nextcloud-server-6f981738bb5285d01e839ff640c163acf1b2a184.tar.gz nextcloud-server-6f981738bb5285d01e839ff640c163acf1b2a184.zip |
Fix some non-utf8-friendly htmlentities (resulting in wrong display of utf8-encoded directory names for example)
Diffstat (limited to 'apps/files/templates/part.breadcrumb.php')
-rwxr-xr-x | apps/files/templates/part.breadcrumb.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/templates/part.breadcrumb.php b/apps/files/templates/part.breadcrumb.php index 41d2c5c8e76..f45600543b7 100755 --- a/apps/files/templates/part.breadcrumb.php +++ b/apps/files/templates/part.breadcrumb.php @@ -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 $crumb["dir"];?>' style='background-image:url("<?php echo OCP\image_path('core','breadcrumb.png');?>")'> - <a href="<?php echo $_['baseURL'].$crumb["dir"]; ?>"><?php echo htmlentities($crumb["name"]); ?></a> + <a href="<?php echo $_['baseURL'].$crumb["dir"]; ?>"><?php echo htmlentities($crumb["name"],ENT_COMPAT | ENT_HTML401,'utf-8'); ?></a> </div> - <?php endfor;?>
\ No newline at end of file + <?php endfor;?> |