thomascube
2010-12-17 db1a87cd6c506f2afbd1a37c64cb56ae11120b49
plugins/password/drivers/sql.php
@@ -56,7 +56,11 @@
            $dovecotpw = 'dovecotpw';
        if (!($method = $rcmail->config->get('password_dovecotpw_method')))
            $method = 'CRAM-MD5';
        $tmpfile = tempnam('/tmp', 'roundcube-');
        // use common temp dir
        $tmp_dir = $rcmail->config->get('temp_dir');
        $tmpfile = tempnam($tmp_dir, 'roundcube-');
        $pipe = popen("'$dovecotpw' -s '$method' > '$tmpfile'", "w");
        if (!$pipe) {
            unlink($tmpfile);