alecpl 15 years ago
parent f139b060b0
commit 98728bdd37

@ -178,10 +178,10 @@ class Auth_SASL_DigestMD5 extends Auth_SASL_Common
*/
function _getCnonce()
{
if (file_exists('/dev/urandom') && $fd = @fopen('/dev/urandom', 'r')) {
if (@file_exists('/dev/urandom') && $fd = @fopen('/dev/urandom', 'r')) {
return base64_encode(fread($fd, 32));
} elseif (file_exists('/dev/random') && $fd = @fopen('/dev/random', 'r')) {
} elseif (@file_exists('/dev/random') && $fd = @fopen('/dev/random', 'r')) {
return base64_encode(fread($fd, 32));
} else {

Loading…
Cancel
Save