summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Bratch <luke@bratch.co.uk>2015-12-05 20:44:52 +0000
committerLuke Bratch <luke@bratch.co.uk>2015-12-05 20:44:52 +0000
commit0247aa5c89198c0dadbcce699b398fac1e783b4b (patch)
treece28efc845e9b2d654bba773170b4b065d133391
parentc2139100d2cdf5ce16d9c75ca64ebf85c59a3d14 (diff)
Use URL encoding on the output
-rw-r--r--search.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/search.php b/search.php
index 6bfa874..db4f9e1 100644
--- a/search.php
+++ b/search.php
@@ -71,7 +71,7 @@ try {
$match = true;
}
if ($match) {
- $results[] = $config["url"] . "/" . $upload->filename;
+ $results[] = $config["url"] . "/" . rawurlencode($upload->filename);
}
}