From 03f008cd4edafbcb75d5f3b99bd3271caabed988 Mon Sep 17 00:00:00 2001 From: Michael Hamann <michael@content-space.de> Date: Sun, 12 Dec 2010 19:48:29 +0100 Subject: [PATCH] Copy changes from ajax_lock to act_draftsave --- inc/actions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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'], ); -- GitLab