[Tickets #7916] Re: \U does not behave as described in the custom sql driver
bugs at horde.org
bugs at horde.org
Thu Jan 29 22:15:41 UTC 2009
DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.
Ticket URL: http://bugs.horde.org/ticket/7916
------------------------------------------------------------------------------
Ticket | 7916
Updated By | jason.stumpf at gmail.com
Summary | \U does not behave as described in the custom sql
| driver
Queue | Vacation
Version | 3.1-RC1
Type | Enhancement
State | Accepted
Priority | 1. Low
Milestone | 3.1
Patch |
Owners |
------------------------------------------------------------------------------
jason.stumpf at gmail.com (2009-01-29 17:15) wrote:
This fixes it at least for me:
in Driver.php where it says:
function Vacation_Driver($user, $realm, $params = array())
{
$this->_params = $params;
// Check if hordeauth is set to 'full'
$hordeauth = $this->getParam('hordeauth');
if ($hordeauth !== 'full') {
@list($user,) = explode('@', $user, 2);
}
$this->_user = $user;
if (!isset($params[$realm])) {
$realm = 'default';
}
$this->_realm = $realm;
}
change it to: function Vacation_Driver($user, $realm, $params = array())
{
$this->_params = $params;
if (!isset($params[$realm])) {
$realm = 'default';
}
$this->_realm = $realm;
// Check if hordeauth is set to 'full'
$hordeauth = $this->getParam('hordeauth');
if ($hordeauth !== 'full') {
@list($user,) = explode('@', $user, 2);
}
$this->_user = $user;
}
I don't know your codebase well, but it seems to me that getParam
depends on $this->_ream being set, but it wasn't.
More information about the bugs
mailing list