summaryrefslogtreecommitdiff
path: root/modules/pref-labels.php
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pref-labels.php')
-rw-r--r--modules/pref-labels.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/modules/pref-labels.php b/modules/pref-labels.php
index 565342700..3f7b7f806 100644
--- a/modules/pref-labels.php
+++ b/modules/pref-labels.php
@@ -150,7 +150,7 @@
if ($subop == "editSave") {
- $sql_exp = trim($_GET["sql_exp"]);
+ $sql_exp = db_escape_string(trim($_GET["sql_exp"]));
$descr = db_escape_string(trim($_GET["description"]));
$label_id = db_escape_string($_GET["id"]);
@@ -180,8 +180,7 @@
if ($subop == "add") {
- // no escaping is done here on purpose
- $sql_exp = trim($_GET["sql_exp"]);
+ $sql_exp = db_escape_string(trim($_GET["sql_exp"]));
$description = db_escape_string($_GET["description"]);
if (!$sql_exp || !$description) return;