summaryrefslogtreecommitdiff
path: root/submit.php
diff options
context:
space:
mode:
Diffstat (limited to 'submit.php')
-rw-r--r--submit.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/submit.php b/submit.php
index f77c908d2..87c369207 100644
--- a/submit.php
+++ b/submit.php
@@ -125,7 +125,7 @@ function submit_preview($subject, $abstract, $story, $category) {
$output .= "</FORM>\n";
$theme->header();
- $theme->preview("", $user->userid, date("l, F d, Y - H:i A", time()), stripslashes($subject), "we-hate-typoes", stripslashes($abstract), "", stripslashes($story));
+ $theme->preview($user->userid, stripslashes($subject), stripslashes($abstract), "", stripslashes($story), date("l, F d, Y - H:i A", time()), stripslashes($category), "we-hate-typoes");
$theme->box("Submit a story", $output);
$theme->footer();
}
@@ -137,7 +137,7 @@ function submit_submit($subject, $abstract, $article, $category) {
include "theme.inc";
### Add submission to SQL table:
- db_query("INSERT INTO stories (author, subject, abstract, article, category, timestamp) VALUES ('$user->id', '$subject', '$abstract', '$article', '$category', '". time() ."')");
+ db_query("INSERT INTO stories (author, subject, abstract, article, category, timestamp) VALUES ('$user->id', '". addslashes($subject) ."', '". addslashes($abstract) ."', '". addslashes($article) ."', '". addslashes($category) ."', '". time() ."')");
### Display confirmation message:
$theme->header();