diff options
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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>'; } } ?> |