From: Michael J. Rubinsky Date: Fri, 9 Apr 2010 21:52:03 +0000 (-0400) Subject: Don't output any body, just the header. Devices won't show this anyway X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=586420a74e33395131e4b36b2cff92b97725a25f;p=horde.git Don't output any body, just the header. Devices won't show this anyway --- diff --git a/framework/Rpc/lib/Horde/Rpc/ActiveSync.php b/framework/Rpc/lib/Horde/Rpc/ActiveSync.php index ee5ce4acd..31447d937 100644 --- a/framework/Rpc/lib/Horde/Rpc/ActiveSync.php +++ b/framework/Rpc/lib/Horde/Rpc/ActiveSync.php @@ -182,8 +182,7 @@ class Horde_Rpc_ActiveSync extends Horde_Rpc if (!$results && empty($this->_policykey)) { header('HTTP/1.1 401 Unauthorized'); header('WWW-Authenticate: Basic realm="Horde RPC"'); - echo 'Access denied. Username or password incorrect.'; - // @TODO: Logging, once Rpc gets an actual logger. + $this->_logger->info('Access denied for user: ' . $user . '. Username or password incorrect.'); } /* Successfully authenticated to backend, try to setup the backend */