$ids = split(",", db_escape_string($_REQUEST["ids"]));
$label_id = db_escape_string($_REQUEST["lid"]);
- $label = label_find_caption($link, $label_id, $_SESSION["uid"]);
+ $label = db_escape_string(label_find_caption($link, $label_id,
+ $_SESSION["uid"]));
print "<rpc-reply>";
print "<info-for-headlines>";
$ids = split(",", db_escape_string($_REQUEST["ids"]));
$label_id = db_escape_string($_REQUEST["lid"]);
- $label = label_find_caption($link, $label_id, $_SESSION["uid"]);
+ $label = db_escape_string(label_find_caption($link, $label_id,
+ $_SESSION["uid"]));
print "<rpc-reply>";
/* Update filters that reference label being renamed */
+ $old_caption = db_escape_string($old_caption);
+
db_query($link, "UPDATE ttrss_filters SET
action_param = '$caption' WHERE action_param = '$old_caption'
AND action_id = 7