diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-04-19 23:45:43 +0200 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2011-04-19 23:45:43 +0200 |
commit | 0e5f2e1f1efe520da6f9c9d7db4bc3dec7e589e6 (patch) | |
tree | 27f95f2301d3ee030c436eb143e3b54758920a86 /web | |
parent | 0f4da329d8f882f27fecea9eaa5e1abeba4e3f53 (diff) |
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')
-rw-r--r-- | web/template/pkg_details.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/pkg_details.php b/web/template/pkg_details.php index ef2ba73..0658063 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>"; } } |