diff options
author | Andrew Dolgov <[email protected]> | 2009-12-29 18:49:27 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2009-12-29 18:49:27 +0300 |
commit | b4e75b2a25d0a30d77b2160c8195835c9816cfe0 (patch) | |
tree | 9900c7c8e7ba8d3719ae8d7430866485838169d3 /modules/pref-labels.php | |
parent | 12e55b9017fe02824d52ef8639de11356ae2d4d4 (diff) |
use POST parameters for frontend requests
Diffstat (limited to 'modules/pref-labels.php')
-rw-r--r-- | modules/pref-labels.php | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/modules/pref-labels.php b/modules/pref-labels.php index 02e5a2be9..e67cb7e3b 100644 --- a/modules/pref-labels.php +++ b/modules/pref-labels.php @@ -1,7 +1,7 @@ <?php function module_pref_labels($link) { - $subop = $_GET["subop"]; + $subop = $_REQUEST["subop"]; if ($subop == "color-set") { $kind = db_escape_string($_REQUEST["kind"]); @@ -84,7 +84,7 @@ if ($subop == "remove") { - $ids = split(",", db_escape_string($_GET["ids"])); + $ids = split(",", db_escape_string($_REQUEST["ids"])); foreach ($ids as $id) { label_remove($link, $id, $_SESSION["uid"]); @@ -94,7 +94,7 @@ if ($subop == "add") { - $caption = db_escape_string($_GET["caption"]); + $caption = db_escape_string($_REQUEST["caption"]); if ($caption) { @@ -109,15 +109,15 @@ set_pref($link, "_PREFS_ACTIVE_TAB", "labelConfig"); - $sort = db_escape_string($_GET["sort"]); + $sort = db_escape_string($_REQUEST["sort"]); if (!$sort || $sort == "undefined") { $sort = "caption"; } - $label_search = db_escape_string($_GET["search"]); + $label_search = db_escape_string($_REQUEST["search"]); - if (array_key_exists("search", $_GET)) { + if (array_key_exists("search", $_REQUEST)) { $_SESSION["prefs_label_search"] = $label_search; } else { $label_search = $_SESSION["prefs_label_search"]; |