Aleksander Machniak
2015-11-25 69a1e4f7b1a601041a2f36c6c99ed410d663ab34
rcube_parse_host() -> rcube_utils::parse_host()
2 files modified
6 ■■■■ changed files
installer/test.php 4 ●●●● patch | view | raw | blame | history
program/include/rcmail_install.php 2 ●●● patch | view | raw | blame | history
installer/test.php
@@ -246,7 +246,7 @@
<h3>Test SMTP config</h3>
<p>
Server: <?php echo rcube_parse_host($RCI->getprop('smtp_server', 'PHP mail()')); ?><br />
Server: <?php echo rcube_utils::parse_host($RCI->getprop('smtp_server', 'PHP mail()')); ?><br />
Port: <?php echo $RCI->getprop('smtp_port'); ?><br />
<?php
@@ -310,7 +310,7 @@
      $send_headers = $mail_object->headers($headers);
      $SMTP = new rcube_smtp();
      $SMTP->connect(rcube_parse_host($RCI->getprop('smtp_server')),
      $SMTP->connect(rcube_utils::parse_host($RCI->getprop('smtp_server')),
        $RCI->getprop('smtp_port'), $CONFIG['smtp_user'], $CONFIG['smtp_pass']);
      $status = $SMTP->send_mail($headers['From'], $headers['To'],
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;