diff options
author | j-ed <juergen@eisfair.org> | 2013-02-27 19:09:37 +0100 |
---|---|---|
committer | j-ed <juergen@eisfair.org> | 2013-02-27 19:09:37 +0100 |
commit | 1f9551a382f42243c9cfece684e1f14508b88c3c (patch) | |
tree | 8ce4d9f219cbd2a19a328f565b5ec813d732dd10 | |
parent | 766a301a6b1832f98c30a09e0218a2e00925d401 (diff) | |
download | nextcloud-server-1f9551a382f42243c9cfece684e1f14508b88c3c.tar.gz nextcloud-server-1f9551a382f42243c9cfece684e1f14508b88c3c.zip |
Update apps/files/templates/part.list.php
prevent multiple slashes in a row when building URLs.
-rw-r--r-- | apps/files/templates/part.list.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/templates/part.list.php b/apps/files/templates/part.list.php index 3c6c5dbd267..eefebd6649b 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 echo $_['baseURL'].$directory.'/'.$name; ?>" title=""> + <a class="name" href="<?php echo rtrim($_['baseURL'],'/').'/'.trim($directory,'/').'/'.$name; ?>" title=""> <?php else: ?> - <a class="name" href="<?php echo $_['downloadURL'].$directory.'/'.$name; ?>" title=""> + <a class="name" href="<?php echo rtrim($_['downloadURL'],'/').'/'.trim($directory,'/').'/'.$name; ?>" title=""> <?php endif; ?> <span class="nametext"> <?php if($file['type'] == 'dir'):?> |