summaryrefslogtreecommitdiff
path: root/www/browse.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/browse.php')
-rw-r--r--www/browse.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/www/browse.php b/www/browse.php
index 433c980..028174e 100644
--- a/www/browse.php
+++ b/www/browse.php
@@ -24,7 +24,8 @@ function get_icon($file){
}
function get_link($file){
- return '<a href="'.$file[3].'/">';
+ $slash = (($_GET["folder"]!="" && substr($_GET["folder"], -1) != "/"))? "/" : "";
+ return '<a href="/'.$_GET["name"]."/".$_GET["folder"].$slash.$file[3].'/">';
}
function get_item($file){