[aur-dev] [PATCH] Encode search string for use in anchor tags.

Loui Chang louipc.ist at gmail.com
Sun Dec 21 14:42:20 EST 2008


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 at gmail.com>
---
 web/template/pkg_search_results.php |    4 ++++
 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>
 
-- 
1.6.0.5



More information about the aur-dev mailing list