aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/templates/part.list.php
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2013-02-27 23:36:52 +0100
committerLukas Reschke <lukas@statuscode.ch>2013-02-27 23:36:52 +0100
commitb93ebe18602b6113f778f148a3f0a83f6dd1d391 (patch)
tree6f3c8321befc71185093189d88e9b18d12f81dbd /apps/files/templates/part.list.php
parent7311c2bb5d724c7c5e3c5ade6b26e3358597a04e (diff)
parent2f036bcc5425bc1b67f7caad4da78ab3efd0fba2 (diff)
downloadnextcloud-server-b93ebe18602b6113f778f148a3f0a83f6dd1d391.tar.gz
nextcloud-server-b93ebe18602b6113f778f148a3f0a83f6dd1d391.zip
Merge master
Diffstat (limited to 'apps/files/templates/part.list.php')
-rw-r--r--apps/files/templates/part.list.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php
index cdd157b27e4..712625ce631 100644
--- a/apps/files/templates/part.list.php
+++ b/apps/files/templates/part.list.php
@@ -28,9 +28,9 @@
>
<?php if(!isset($_['readonly']) || !$_['readonly']): ?><input type="checkbox" /><?php endif; ?>
<?php if($file['type'] == 'dir'): ?>
- <a class="name" href="<?php p($_['baseURL'].$directory.'/'.$name); ?>" title="">
+ <a class="name" href="<?php p(rtrim($_['baseURL'],'/').'/'.trim($directory,'/').'/'.$name); ?>" title="">
<?php else: ?>
- <a class="name" href="<?php p($_['downloadURL'].$directory.'/'.$name); ?>" title="">
+ <a class="name" href="<?php p(rtrim($_['downloadURL'],'/').'/'.trim($directory,'/').'/'.$name); ?>" title="">
<?php endif; ?>
<span class="nametext">
<?php if($file['type'] == 'dir'):?>