summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-03-22 17:29:36 +0000
committerDries Buytaert <dries@buytaert.net>2001-03-22 17:29:36 +0000
commitab643ce6d2391a5c592bcfac7dfe6f996a1481f0 (patch)
treef0e3b36339408ee8e55bb2ea4a9b25b01881ba2a
parent397d29692fd6308cc6bcee170fee65f66a1bea88 (diff)
downloadbrdo-ab643ce6d2391a5c592bcfac7dfe6f996a1481f0.tar.gz
brdo-ab643ce6d2391a5c592bcfac7dfe6f996a1481f0.tar.bz2
- fixed slash-problem reported by Jared
-rw-r--r--modules/story.module2
-rw-r--r--modules/story/story.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/story.module b/modules/story.module
index 9b1dac8d8..907ac16ea 100644
--- a/modules/story.module
+++ b/modules/story.module
@@ -73,7 +73,7 @@ function story_add() {
$output .= "<INPUT TYPE=\"text\" NAME=\"edit[subject]\" SIZE=\"50\" MAXLENGTH=\"60\"><BR>\n";
$output .= "<B>Section:</B><BR>\n";
- foreach ($sections = section_get() as $value) $options .= " <OPTION VALUE=\"$value\">$value</OPTION>\n";
+ foreach ($sections = section_get() as $value) $options .= " <OPTION VALUE=\"". check_textfield($value) ."\">". check_output($value) ."</OPTION>\n";
$output .= "<SELECT NAME=\"edit[section]\">$options</SELECT><P>\n";
$output .= "<B>Abstract:</B><BR>\n";
diff --git a/modules/story/story.module b/modules/story/story.module
index 9b1dac8d8..907ac16ea 100644
--- a/modules/story/story.module
+++ b/modules/story/story.module
@@ -73,7 +73,7 @@ function story_add() {
$output .= "<INPUT TYPE=\"text\" NAME=\"edit[subject]\" SIZE=\"50\" MAXLENGTH=\"60\"><BR>\n";
$output .= "<B>Section:</B><BR>\n";
- foreach ($sections = section_get() as $value) $options .= " <OPTION VALUE=\"$value\">$value</OPTION>\n";
+ foreach ($sections = section_get() as $value) $options .= " <OPTION VALUE=\"". check_textfield($value) ."\">". check_output($value) ."</OPTION>\n";
$output .= "<SELECT NAME=\"edit[section]\">$options</SELECT><P>\n";
$output .= "<B>Abstract:</B><BR>\n";