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>
This commit is contained in:
Loui Chang 2008-12-21 14:42:20 -05:00 committed by Callan Barrett
parent 0793eca14f
commit 8f6edc4517

View file

@ -1,3 +1,7 @@
<?php
# Encode search string
$K = urlencode($K);
?>
<form action='packages.php?<?php print $_SERVER['QUERY_STRING'] ?>' method='post'> <form action='packages.php?<?php print $_SERVER['QUERY_STRING'] ?>' method='post'>
<center> <center>