index : website | |
Archlinux32 website - obsolete | gitolite user |
summaryrefslogtreecommitdiff |
author | Erich Eckner <git@eckner.net> | 2018-11-06 10:25:08 +0100 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2018-11-06 10:25:08 +0100 |
commit | 0a9cb2b3f703b53626179700d348214f6d4b0cef (patch) | |
tree | e7d5983736cdd599a962bcefd67d8f61abef35d9 /buildmaster/build-list.php | |
parent | f52e97f1ad907f8406f6b1f53e6f82394fca2a84 (diff) |
-rw-r--r-- | buildmaster/build-list.php | 5 |
diff --git a/buildmaster/build-list.php b/buildmaster/build-list.php index f915788..11ccb59 100644 --- a/buildmaster/build-list.php +++ b/buildmaster/build-list.php @@ -63,12 +63,11 @@ foreach ( $multi_select_search_criteria as $criterium ) { if (isset($_GET[$criterium["name"]])) { $filter .= " AND " . $criterium["query_pre"]; foreach ($criterium["values"] as $value) - if (strpos("&" . $_SERVER["QUERY_STRING"] . "&", "&" . $criterium["name"] . "=" . $value . "&") !== false) + if (strpos("&" . $_SERVER["QUERY_STRING"] . "&", "&" . $criterium["name"] . "=" . urlencode($value) . "&") !== false) $filter .= $criterium["query_in_pre"] . $value . $criterium["query_in_post"]; $filter .= $criterium["query_post"]; } } - $single_select_search_criteria = array( "broken" => array( "name" => "broken", @@ -436,7 +435,7 @@ foreach ($multi_select_search_criteria as $criterium) { print " <select multiple=\"multiple\" id=\"id_" . $criterium["name"] . "\" name=\"" . $criterium["name"] . "\">\n"; foreach ($criterium["values"] as $value) { print " <option value=\"" . $value . "\""; - if (strpos( "&" . $_SERVER["QUERY_STRING"] . "&", "&" . $criterium["name"] . "=" . $value . "&") !== false) + if (strpos( "&" . $_SERVER["QUERY_STRING"] . "&", "&" . $criterium["name"] . "=" . urlencode($value) . "&") !== false) print " selected=\"selected\""; print ">" . $value . "</option>\n"; } |