diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2013-02-25 14:50:59 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2013-02-25 14:50:59 +0000 |
commit | 1fe0882c56ea31e738540e942b743966927415fd (patch) | |
tree | c3324566ada64f09775b35bc989592c7701c32d4 /lib/exe/xmlrpc.php | |
parent | 177daee5492e8c3cdfdb950cdf61a6798f7a9586 (diff) | |
parent | 058fd09655df42c72f3c447e3b9561e4909e978d (diff) | |
download | rpg-1fe0882c56ea31e738540e942b743966927415fd.tar.gz rpg-1fe0882c56ea31e738540e942b743966927415fd.tar.bz2 |
Merge branch 'master' into FS#2415
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 5e6c197d0..c09daa17c 100644 --- a/lib/exe/xmlrpc.php +++ b/lib/exe/xmlrpc.php @@ -29,10 +29,10 @@ class dokuwiki_xmlrpc_server extends IXR_Server { return $result; } catch (RemoteAccessDeniedException $e) { if (!isset($_SERVER['REMOTE_USER'])) { - header('HTTP/1.1 401 Unauthorized'); + http_status(401); return new IXR_Error(-32603, "server error. not authorized to call method $methodname"); } else { - header('HTTP/1.1 403 Forbidden'); + http_status(403); return new IXR_Error(-32604, "server error. forbidden to call the method $methodname"); } } catch (RemoteException $e) { |