Changeset 3505 in subversion
- Timestamp:
- Apr 19, 2010 1:56:05 PM (3 years ago)
- File:
-
- 1 edited
-
trunk/plugins/password/drivers/sql.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/plugins/password/drivers/sql.php
r3404 r3505 53 53 // dovecotpw 54 54 if (strpos($sql, '%D') !== FALSE) { 55 if (!($dovecotpw = $rcmail->config->get(' dovecotpw')))55 if (!($dovecotpw = $rcmail->config->get('password_dovecotpw'))) 56 56 $dovecotpw = 'dovecotpw'; 57 if (!($method = $rcmail->config->get(' dovecotmethod')))57 if (!($method = $rcmail->config->get('password_dovecotpw_method'))) 58 58 $method = 'CRAM-MD5'; 59 59 $tmpfile = tempnam('/tmp', 'rouncdube-'); … … 67 67 fwrite($pipe, $passwd . "\n", 1+strlen($passwd)); 68 68 pclose($pipe); 69 $newpass = file_get_contents($tmpfile);69 $newpass = trim(file_get_contents($tmpfile), "\n"); 70 70 if (!preg_match('/^\{' . $method . '\}/', $newpass)) { 71 71 return PASSWORD_CRYPT_ERROR;
Note: See TracChangeset
for help on using the changeset viewer.
