summaryrefslogtreecommitdiffstats
path: root/web/template
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-12-21 20:42:20 +0100
committerCallan Barrett <wizzomafizzo@gmail.com>2008-12-22 05:25:52 +0100
commit8f6edc4517ec0b6b8b5f441cb93bffe794180ed6 (patch)
tree1f38e17b2fafc13bd8890dd86ce325c2701515b4 /web/template
parent0793eca14f98144c3d5d022f58bb0b2fa3a74a5c (diff)
downloadaur-8f6edc4517ec0b6b8b5f441cb93bffe794180ed6.tar.gz
aur-8f6edc4517ec0b6b8b5f441cb93bffe794180ed6.tar.xz
Encode search string for use in anchor tags.
Sorting, and viewing more results resets the search if you search for '#' in 1.5.3. This should fix that bug. Signed-off-by: Loui Chang <louipc.ist@gmail.com> Signed-off-by: Callan Barrett <wizzomafizzo@gmail.com>
Diffstat (limited to 'web/template')
-rw-r--r--web/template/pkg_search_results.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/web/template/pkg_search_results.php b/web/template/pkg_search_results.php
index 5af02ef0..2087abc4 100644
--- a/web/template/pkg_search_results.php
+++ b/web/template/pkg_search_results.php
@@ -1,3 +1,7 @@
+<?php
+# Encode search string
+$K = urlencode($K);
+?>
<form action='packages.php?<?php print $_SERVER['QUERY_STRING'] ?>' method='post'>
<center>