summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/exe/ajax.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php
index 533b8f91c..e9c59ca5d 100644
--- a/lib/exe/ajax.php
+++ b/lib/exe/ajax.php
@@ -136,7 +136,7 @@ function ajax_lock(){
if(!$client) $client = clientIP(true);
$draft = array('id' => $id,
- 'prefix' => $_POST['prefix'],
+ 'prefix' => substr($_POST['prefix'], 0, -1),
'text' => $_POST['wikitext'],
'suffix' => $_POST['suffix'],
'date' => (int) $_POST['date'],