Browse Source

oops, remove useless db_escape_string() in article class (and nsfw plugin)

Andrew Dolgov 4 months ago
parent
commit
ed1262d55a
2 changed files with 2 additions and 3 deletions
  1. 1 2
      classes/article.php
  2. 1 1
      plugins/nsfw/init.php

+ 1 - 2
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();
 

+ 1 - 1
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);