diff options
Diffstat (limited to 'lib/exe/xmlrpc.php')
-rw-r--r-- | lib/exe/xmlrpc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/exe/xmlrpc.php b/lib/exe/xmlrpc.php index 9b440c9f5..d3913482f 100644 --- a/lib/exe/xmlrpc.php +++ b/lib/exe/xmlrpc.php @@ -466,14 +466,14 @@ class dokuwiki_xmlrpc_server extends IXR_IntrospectionServer { global $conf; $id = cleanID($id); - $TEXT = trim($text); + $TEXT = cleanText($text); $sum = $params['sum']; $minor = $params['minor']; if(empty($id)) return new IXR_Error(1, 'Empty page ID'); - if(!page_exists($id) && empty($TEXT)) { + if(!page_exists($id) && trim($TEXT) == '' ) { return new IXR_ERROR(1, 'Refusing to write an empty new wiki page'); } |