summaryrefslogtreecommitdiff
path: root/buildmaster/build-list.php
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-11-06 10:25:08 +0100
committerErich Eckner <git@eckner.net>2018-11-06 10:25:08 +0100
commit0a9cb2b3f703b53626179700d348214f6d4b0cef (patch)
treee7d5983736cdd599a962bcefd67d8f61abef35d9 /buildmaster/build-list.php
parentf52e97f1ad907f8406f6b1f53e6f82394fca2a84 (diff)
downloadarchweb32-0a9cb2b3f703b53626179700d348214f6d4b0cef.tar.xz
buildmaster/build-list.php: needed some urlencode()s and urldecode()s
Diffstat (limited to 'buildmaster/build-list.php')
-rw-r--r--buildmaster/build-list.php5
1 files changed, 2 insertions, 3 deletions
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";
}