From: Andrew Dolgov Date: Thu, 29 Nov 2018 20:04:12 +0000 (+0300) Subject: oops, remove useless db_escape_string() in article class (and nsfw plugin) X-Git-Tag: 18.12~27 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ed1262d55a01a6ffbefe01eb3b5fc22d33dfad24;p=tt-rss.git oops, remove useless db_escape_string() in article class (and nsfw plugin) --- diff --git a/classes/article.php b/classes/article.php index c5e73ea0..075da194 100755 --- a/classes/article.php +++ b/classes/article.php @@ -372,8 +372,7 @@ class Article extends Handler_Protected { $ids = explode(",", clean($_REQUEST["ids"])); $label_id = clean($_REQUEST["lid"]); - $label = db_escape_string(Labels::find_caption($label_id, - $_SESSION["uid"])); + $label = Labels::find_caption($label_id, $_SESSION["uid"]); $reply["info-for-headlines"] = array(); diff --git a/plugins/nsfw/init.php b/plugins/nsfw/init.php index f10881ba..6a1ae3c6 100644 --- a/plugins/nsfw/init.php +++ b/plugins/nsfw/init.php @@ -90,7 +90,7 @@ class NSFW extends Plugin { } function save() { - $tags = explode(",", db_escape_string($_POST["tags"])); + $tags = explode(",", $_POST["tags"]); $tags = array_map("trim", $tags); $tags = array_map("mb_strtolower", $tags); $tags = join(", ", $tags);