summaryrefslogtreecommitdiff
path: root/modules/pref-labels.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2009-10-19 23:29:45 +0400
committerAndrew Dolgov <[email protected]>2009-10-19 23:29:45 +0400
commit7a13338b4c9ee0f421a9e182e83cb2d8f458774e (patch)
tree204a926e32095a8dd5334beb4eb271d55d5d063b /modules/pref-labels.php
parent4e332844b4d546e939c54cbbdcff1a11840aa0e3 (diff)
fix proper escaping of label titles (closes #255)
Diffstat (limited to 'modules/pref-labels.php')
-rw-r--r--modules/pref-labels.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/pref-labels.php b/modules/pref-labels.php
index 336228801..02e5a2be9 100644
--- a/modules/pref-labels.php
+++ b/modules/pref-labels.php
@@ -61,6 +61,8 @@
/* 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