From 173888b43d24390108826f965a87aca9535d56ae Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 21 Apr 2001 17:52:39 +0000 Subject: *** UnConeD wrote: > - Fixed security issue: unchecked form-data in a db-query (line 82) > - Fixed bug: the module now checks only against other *stories* > (instead of nodes) with the same title. - Took out the duplicate title check; after the story module has been "nodified", duplicate titles are no longer a problem. --- modules/story.module | 6 ------ modules/story/story.module | 6 ------ 2 files changed, 12 deletions(-) (limited to 'modules') diff --git a/modules/story.module b/modules/story.module index e73461262..2a14200fc 100644 --- a/modules/story.module +++ b/modules/story.module @@ -79,8 +79,6 @@ function story_form($edit = array()) { $output .= "\n"; } - $duplicate = db_result(db_query("SELECT COUNT(nid) FROM node WHERE title = '". check_input($title) ."' AND type = 'story'")); - if (!$edit) { $output .= "\n"; } @@ -92,10 +90,6 @@ function story_form($edit = array()) { $output .= "". t("Warning: you did not supply an abstract.") ."

\n"; $output .= "\n"; } - else if (!$edit[nid] && $duplicate) { - $output .= "". t("Warning: there is already a story with that subject.") ."

\n"; - $output .= "\n"; - } else { $output .= "\n"; $output .= "\n"; diff --git a/modules/story/story.module b/modules/story/story.module index e73461262..2a14200fc 100644 --- a/modules/story/story.module +++ b/modules/story/story.module @@ -79,8 +79,6 @@ function story_form($edit = array()) { $output .= "\n"; } - $duplicate = db_result(db_query("SELECT COUNT(nid) FROM node WHERE title = '". check_input($title) ."' AND type = 'story'")); - if (!$edit) { $output .= "\n"; } @@ -92,10 +90,6 @@ function story_form($edit = array()) { $output .= "". t("Warning: you did not supply an abstract.") ."

\n"; $output .= "\n"; } - else if (!$edit[nid] && $duplicate) { - $output .= "". t("Warning: there is already a story with that subject.") ."

\n"; - $output .= "\n"; - } else { $output .= "\n"; $output .= "\n"; -- cgit v1.2.3