]>
Commit | Line | Data |
---|---|---|
8465c599 ER |
1 | --- eventum-1.7.1/include/class.support.php~ 2006-07-15 21:11:21.020205702 +0300 |
2 | +++ eventum-1.7.1/include/class.support.php 2006-07-15 21:13:36.033229467 +0300 | |
3 | @@ -430,11 +430,16 @@ | |
4 | */ | |
5 | function connectEmailServer($info) | |
6 | { | |
7 | - $mbox = @imap_open(Support::getServerURI($info), $info['ema_username'], $info['ema_password']); | |
8 | + $username = $info['ema_username']; | |
9 | + $password = $info['ema_password']; | |
10 | + # avoid password showing up in backtrace | |
11 | + unset($info['ema_password']); | |
12 | + | |
13 | + $mbox = @imap_open(Support::getServerURI($info), $username, $password); | |
14 | if ($mbox === FALSE) { | |
15 | $errors = @imap_errors(); | |
16 | if (strstr(strtolower($errors[0]), 'certificate failure')) { | |
17 | - $mbox = @imap_open(Support::getServerURI($info, TRUE), $info['ema_username'], $info['ema_password']); | |
18 | + $mbox = @imap_open(Support::getServerURI($info, TRUE), $username, $password); | |
19 | } else { | |
20 | Error_Handler::logError('Error while connecting to the email server - ' . $errors[0], __FILE__, __LINE__); | |
21 | } |