diff options
author | Andreas Gohr <andi@splitbrain.org> | 2012-04-20 21:44:48 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2012-04-20 21:44:48 +0200 |
commit | 73d2d14ce0b465ec7117c8dc6ab39a59f6ed7b5a (patch) | |
tree | 6f051c557dd65b39b71a77e47dca695d31c9c4df /lib/exe | |
parent | f64856ce8e8057c67c211aadd41ff22ec10f2bb0 (diff) | |
parent | 8a803cae76e430dc0f358986db3420ef45049370 (diff) | |
download | rpg-73d2d14ce0b465ec7117c8dc6ab39a59f6ed7b5a.tar.gz rpg-73d2d14ce0b465ec7117c8dc6ab39a59f6ed7b5a.tar.bz2 |
Merge branch 'master' into phpunit
* master: (29 commits)
some edge case checking in search result highlighting
Resolve empty page ID to configured start page
Added more detail error code for unauthorized calls in xmlrpc interface.
changed internal Mailer members from private to protected
made it possible to disable HTML mails in the config
removed commented code left from the quoted_printable days
add missing table tags for HTML diff mails
fixed subscriber mail signatures
use real HRs in HTML mails
Add various headers to the mails FS#2247. pull request #83 closed
removed footer image from HTML mails
use inlinestyles for diffs in HTML mails
fixed signature stripping
fixed mailprefix handling
fixed missing replacement for HTML notify mails
allow image embeds in HTML mail templates
Added HTML wrapper for mails
allow non-txt extensions when accessing locales
added Mailer class to autoloader
Replaced mail_send calls with new Mailer class
...
Diffstat (limited to 'lib/exe')
-rw-r--r-- | lib/exe/xmlrpc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/exe/xmlrpc.php b/lib/exe/xmlrpc.php index cf3682f11..5e6c197d0 100644 --- a/lib/exe/xmlrpc.php +++ b/lib/exe/xmlrpc.php @@ -30,10 +30,11 @@ class dokuwiki_xmlrpc_server extends IXR_Server { } catch (RemoteAccessDeniedException $e) { if (!isset($_SERVER['REMOTE_USER'])) { header('HTTP/1.1 401 Unauthorized'); + return new IXR_Error(-32603, "server error. not authorized to call method $methodname"); } else { header('HTTP/1.1 403 Forbidden'); + return new IXR_Error(-32604, "server error. forbidden to call the method $methodname"); } - return new IXR_Error(-32603, "server error. not authorized to call method $methodname"); } catch (RemoteException $e) { return new IXR_Error($e->getCode(), $e->getMessage()); } |