Aleksander Machniak
2015-03-13 e4338fdf384f040101be3fad507c16ecb229580a
Fix missing host:port in connection error message
2 files modified
17 ■■■■ changed files
plugins/managesieve/Changelog 1 ●●●● patch | view | raw | blame | history
plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php 16 ●●●● patch | view | raw | blame | history
plugins/managesieve/Changelog
@@ -2,6 +2,7 @@
-----------------------------------------------------------
- Fix PHP fatal error when visiting Vacation interface and there's no sieve script yet
- Fix handling of header test with one-element array as header name
- Fix missing host:port in connection error message
* version 8.2 [2015-01-14]
-----------------------------------------------------------
plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
@@ -122,9 +122,6 @@
                case rcube_sieve::ERROR_CONNECTION:
                case rcube_sieve::ERROR_LOGIN:
                    $this->rc->output->show_message('managesieve.filterconnerror', 'error');
                    rcube::raise_error(array('code' => 403, 'type' => 'php',
                        'file' => __FILE__, 'line' => __LINE__,
                        'message' => "Unable to connect to managesieve on $host:$port"), true, false);
                    break;
                default:
@@ -210,7 +207,18 @@
            $plugin['socket_options']
        );
        return $this->sieve->error();
        $error = $this->sieve->error();
        if ($error) {
            rcube::raise_error(array(
                    'code'    => 403,
                    'file'    => __FILE__,
                    'line'    => __LINE__,
                    'message' => "Unable to connect to managesieve on $host:$port"
                ), true, false);
        }
        return $error;
    }
    /**