From 8f783f69dd7fba62361e8d7436dcab3894632cd2 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Fri, 6 Jun 2003 21:06:08 +0000
Subject: [PATCH] - Removed a redundant check_query().

- Removed a bogus check_input().
---
 modules/node.module      | 4 +---
 modules/node/node.module | 4 +---
 2 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/modules/node.module b/modules/node.module
index e51d0cc4c912..1bbc95623e48 100644
--- a/modules/node.module
+++ b/modules/node.module
@@ -69,8 +69,6 @@ function node_tag_new($nid) {
   global $user;
 
   if ($user->uid) {
-    $nid = check_query($nid);
-
     $result = db_query("SELECT timestamp FROM history WHERE uid = %d AND nid = %d", $user->uid, $nid);
     if (db_fetch_object($result)) {
       db_query("UPDATE history SET timestamp = %d WHERE uid = %d AND nid = %d", time(), $user->uid, $nid);
@@ -1154,7 +1152,7 @@ function node_add($type) {
     */
     foreach (array("title", "teaser", "body") as $field) {
       if ($_GET["edit"][$field]) {
-        $node[$field] = check_input($_GET["edit"][$field]);
+        $node[$field] = $_GET["edit"][$field];
       }
     }
     $output = node_form($node);
diff --git a/modules/node/node.module b/modules/node/node.module
index e51d0cc4c912..1bbc95623e48 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -69,8 +69,6 @@ function node_tag_new($nid) {
   global $user;
 
   if ($user->uid) {
-    $nid = check_query($nid);
-
     $result = db_query("SELECT timestamp FROM history WHERE uid = %d AND nid = %d", $user->uid, $nid);
     if (db_fetch_object($result)) {
       db_query("UPDATE history SET timestamp = %d WHERE uid = %d AND nid = %d", time(), $user->uid, $nid);
@@ -1154,7 +1152,7 @@ function node_add($type) {
     */
     foreach (array("title", "teaser", "body") as $field) {
       if ($_GET["edit"][$field]) {
-        $node[$field] = check_input($_GET["edit"][$field]);
+        $node[$field] = $_GET["edit"][$field];
       }
     }
     $output = node_form($node);
-- 
GitLab