summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index 3a776e5..982685e 100644
--- a/index.php
+++ b/index.php
@@ -295,7 +295,7 @@ for ($i = 0; $i < count($listing); $i++) {
$spaces = $spaces . " ";
}
- echo '<img src="/icons/' . $listing[$i]['type'] . '.gif" alt="[IMG]"> <a href="' . $listing[$i]['filename'] . '">' . $preview . '</a>' . $spaces . date("d-M-Y H:i", $listing[$i]['modified']) . ' ' . size_readable($listing[$i]['size'], null, "bi") . ' ' . "\n";
+ echo '<img src="/icons/' . $listing[$i]['type'] . '.gif" alt="[IMG]"> <a href="' . rawurlencode($listing[$i]['filename']) . '">' . $preview . '</a>' . $spaces . date("d-M-Y H:i", $listing[$i]['modified']) . ' ' . size_readable($listing[$i]['size'], null, "bi") . ' ' . "\n";
}
?>
<hr></pre>
@@ -317,7 +317,7 @@ for ($i = 0; $i < count($listing); $i++) {
}
} else if ($_GET['format'] == "light") {
for ($i = 0; $i < count($listing); $i++) {
- echo '<a href="' . $listing[$i]['filename'] . '">' . $listing[$i]['filename'] . '</a><br>';
+ echo '<a href="' . rawurlencode($listing[$i]['filename']) . '">' . $listing[$i]['filename'] . '</a><br>';
}
}
?>