]> git.wh0rd.org - tt-rss.git/commitdiff
oops, remove useless db_escape_string() in article class (and nsfw plugin)
authorAndrew Dolgov <noreply@fakecake.org>
Thu, 29 Nov 2018 20:04:12 +0000 (23:04 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Thu, 29 Nov 2018 20:04:12 +0000 (23:04 +0300)
classes/article.php
plugins/nsfw/init.php

index c5e73ea0261edcbab4c57fa40a6e7697953a5f19..075da19409d986fb5f58bd0d7de21c216eae7387 100755 (executable)
@@ -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();
 
index f10881ba5f56ce0d9166f1b8d979cc67f7cd6276..6a1ae3c65a23958c6a167ed43bb43603daa0b8e8 100644 (file)
@@ -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);