diff --git a/lib/exe/xmlrpc.php b/lib/exe/xmlrpc.php index 2ebe477573ddf7210e7d3faab7a29cfb9b610106..64c85be05421979034a5cc26a9b95593b8a0b1ec 100644 --- a/lib/exe/xmlrpc.php +++ b/lib/exe/xmlrpc.php @@ -193,6 +193,10 @@ class dokuwiki_xmlrpc_server extends IXR_IntrospectionServer { if(empty($id)) return new IXR_Error(1, 'Empty page ID'); + if(!page_exists($id) && empty($TEXT)) { + return new IXR_ERROR(1, 'Refusing to write an empty new wiki page'); + } + if(auth_quickaclcheck($id) < AUTH_WRITE) return new IXR_Error(1, 'You are not allowed to edit this page');