From 586420a74e33395131e4b36b2cff92b97725a25f Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 9 Apr 2010 17:52:03 -0400 Subject: [PATCH] Don't output any body, just the header. Devices won't show this anyway --- framework/Rpc/lib/Horde/Rpc/ActiveSync.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 */ -- 2.11.0