summaryrefslogtreecommitdiffstats
path: root/web/template/pkg_details.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-04-19 23:45:43 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2011-04-19 23:45:43 +0200
commit0e5f2e1f1efe520da6f9c9d7db4bc3dec7e589e6 (patch)
tree27f95f2301d3ee030c436eb143e3b54758920a86 /web/template/pkg_details.php
parent0f4da329d8f882f27fecea9eaa5e1abeba4e3f53 (diff)
downloadaur-0e5f2e1f1efe520da6f9c9d7db4bc3dec7e589e6.tar.gz
aur-0e5f2e1f1efe520da6f9c9d7db4bc3dec7e589e6.tar.xz
urlencode() query args for main site package search (fixes FS#23774).
There may be characters in package dependencies that are reserved within URLs (e.g. "+"). Use urlencode() to ensure those are encoded correctly. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/pkg_details.php')
-rw-r--r--web/template/pkg_details.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php
index ef2ba736..06580639 100644
--- a/web/template/pkg_details.php
+++ b/web/template/pkg_details.php
@@ -116,7 +116,7 @@ $out_of_date_time = ($row["OutOfDateTS"] == 0) ? $msg : gmdate("r", intval($row[
if (!is_null($darr[2])) {
echo " <a href='packages.php?ID=".$darr[2]."'>".$darr[0].$darr[1]."</a>";
} else {
- echo " <a href='http://www.archlinux.org/packages/?q=".$darr[0]."'>".$darr[0].$darr[1]."</a>";
+ echo " <a href='http://www.archlinux.org/packages/?q=".urlencode($darr[0])."'>".$darr[0].$darr[1]."</a>";
}
}