R25845 - /trunk/egw-pear/Net/IMAPProtocol.php

Author: leithoff
New Revision: 25845

URL: http://www.egroupware.org/viewvc?rev=3D25845&view=3Drev
Log:
In rare cases, Auth_SASL Class is not available, if needed for the call of =
the static factory method. =

This caused a fatal error. This may be caused by an incomplete restore of t=
he IMAPProtocoll Class, or =

by a call of the class, without calling the classes constructor.
This fix checks for the availibility of the class Auth_SASL, and requires t=
he class if not.

Modified:
trunk/egw-pear/Net/IMAPProtocol.php

Modified: trunk/egw-pear/Net/IMAPProtocol.php
URL: http://www.egroupware.org/viewvc/trunk/egw-pear/Net/IMAPProtocol.php?r=
ev=3D25845&r1=3D25844&r2=3D25845&view=3Ddiff
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D
— trunk/egw-pear/Net/IMAPProtocol.php (original)
+++ trunk/egw-pear/Net/IMAPProtocol.php Tue Aug 5 13:07:36 2008
@@ -538,7 +538,7 @@
*/
function _authDigest_MD5($uid , $pwd , $cmdid)
{

  •   class_exists('Auth_SASL') || require_once 'Auth/SASL.php';
       if ( PEAR::isError($error =3D $this->_putCMD( $cmdid ,"AUTHENTICAT=
    

E" , “DIGEST-MD5”) ) ) {
return $error;
}
@@ -596,7 +596,7 @@
function _authCRAM_MD5($uid, $pwd, $cmdid)
{

  •   class_exists('Auth_SASL') || require_once 'Auth/SASL.php';
    

=

     if ( PEAR::isError($error =3D $this->_putCMD( $cmdid ,"AUTHENTICAT=

E" , “CRAM-MD5”) ) ) {
return $error;


This SF.Net email is sponsored by the Moblin Your Move Developer’s challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/


eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs