summaryrefslogtreecommitdiff
path: root/inc/actions.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/actions.php')
-rw-r--r--inc/actions.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/actions.php b/inc/actions.php
index d98382a3b..a4461d1ab 100644
--- a/inc/actions.php
+++ b/inc/actions.php
@@ -292,9 +292,10 @@ function act_draftsave($act){
global $conf;
if($conf['usedraft'] && $_POST['wikitext']){
$draft = array('id' => $ID,
- 'prefix' => $_POST['prefix'],
+ 'prefix' => substr($_POST['prefix'], 0, -1),
'text' => $_POST['wikitext'],
'suffix' => $_POST['suffix'],
+ 'date' => (int) $_POST['date'],
'date' => $_POST['date'],
'client' => $INFO['client'],
);