summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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";