diff --git a/backend.php b/backend.php index 4d855cead..bb4180449 100644 --- a/backend.php +++ b/backend.php @@ -2167,8 +2167,8 @@ if ($subop == "editSave") { - $regexp = db_escape_string($_GET["r"]); - $match = db_escape_string($_GET["m"]); + $regexp = db_escape_string(trim($_GET["r"])); + $match = db_escape_string(trim($_GET["m"])); $filter_id = db_escape_string($_GET["id"]); $feed_id = db_escape_string($_GET["fid"]); $action_id = db_escape_string($_GET["aid"]); @@ -2482,8 +2482,8 @@ if ($subop == "test") { - $expr = $_GET["expr"]; - $descr = $_GET["descr"]; + $expr = trim($_GET["expr"]); + $descr = trim($_GET["descr"]); print "