summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLoui Chang <louipc.ist@gmail.com>2008-12-21 14:42:20 -0500
committerCallan Barrett <wizzomafizzo@gmail.com>2008-12-22 13:25:52 +0900
commit8f6edc4517ec0b6b8b5f441cb93bffe794180ed6 (patch)
tree1f38e17b2fafc13bd8890dd86ce325c2701515b4 /web
parent0793eca14f98144c3d5d022f58bb0b2fa3a74a5c (diff)
downloadaurweb-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')
-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 5af02ef..2087abc 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>