Changeset 3505 in subversion


Ignore:
Timestamp:
Apr 19, 2010 1:56:05 PM (3 years ago)
Author:
alec
Message:
  • fix dovecotpw features
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/password/drivers/sql.php

    r3404 r3505  
    5353    // dovecotpw 
    5454    if (strpos($sql, '%D') !== FALSE) { 
    55         if (!($dovecotpw = $rcmail->config->get('dovecotpw'))) 
     55        if (!($dovecotpw = $rcmail->config->get('password_dovecotpw'))) 
    5656            $dovecotpw = 'dovecotpw'; 
    57         if (!($method = $rcmail->config->get('dovecotmethod'))) 
     57        if (!($method = $rcmail->config->get('password_dovecotpw_method'))) 
    5858            $method = 'CRAM-MD5'; 
    5959        $tmpfile = tempnam('/tmp', 'rouncdube-'); 
     
    6767            fwrite($pipe, $passwd . "\n", 1+strlen($passwd)); 
    6868            pclose($pipe); 
    69             $newpass = file_get_contents($tmpfile); 
     69            $newpass = trim(file_get_contents($tmpfile), "\n"); 
    7070            if (!preg_match('/^\{' . $method . '\}/', $newpass)) { 
    7171                return PASSWORD_CRYPT_ERROR; 
Note: See TracChangeset for help on using the changeset viewer.