From bd0551b22076b82a6d49e9f7a2b2e0c90a1b2326 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak <alec@alec.pl> Date: Fri, 05 Feb 2016 07:25:27 -0500 Subject: [PATCH] Secure also downloads of addressbook exports, managesieve script exports and Enigma keys exports --- program/include/rcmail_install.php | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/program/include/rcmail_install.php b/program/include/rcmail_install.php index d16c22e..af27e29 100644 --- a/program/include/rcmail_install.php +++ b/program/include/rcmail_install.php @@ -522,7 +522,7 @@ foreach ($default_hosts as $key => $name) { if (!empty($name)) - $out[] = rcube_parse_host(is_numeric($key) ? $name : $key); + $out[] = rcube_utils::parse_host(is_numeric($key) ? $name : $key); } return $out; @@ -601,7 +601,7 @@ */ function pass($name, $message = '') { - echo Q($name) . ': <span class="success">OK</span>'; + echo rcube::Q($name) . ': <span class="success">OK</span>'; $this->_showhint($message); } @@ -620,7 +620,7 @@ $this->failures++; } - echo Q($name) . ': <span class="fail">NOT OK</span>'; + echo rcube::Q($name) . ': <span class="fail">NOT OK</span>'; $this->_showhint($message, $url); } @@ -634,7 +634,7 @@ */ function optfail($name, $message = '', $url = '') { - echo Q($name) . ': <span class="na">NOT OK</span>'; + echo rcube::Q($name) . ': <span class="na">NOT OK</span>'; $this->_showhint($message, $url); } @@ -648,17 +648,17 @@ */ function na($name, $message = '', $url = '') { - echo Q($name) . ': <span class="na">NOT AVAILABLE</span>'; + echo rcube::Q($name) . ': <span class="na">NOT AVAILABLE</span>'; $this->_showhint($message, $url); } function _showhint($message, $url = '') { - $hint = Q($message); + $hint = rcube::Q($message); if ($url) - $hint .= ($hint ? '; ' : '') . 'See <a href="' . Q($url) . '" target="_blank">' . Q($url) . '</a>'; + $hint .= ($hint ? '; ' : '') . 'See <a href="' . rcube::Q($url) . '" target="_blank">' . rcube::Q($url) . '</a>'; if ($hint) echo '<span class="indent">(' . $hint . ')</span>'; -- Gitblit v1.9.1