Browse Source

[Web] Escape : in relayhosts

andryyy 8 years ago
parent
commit
490e1c5001
1 changed files with 1 additions and 1 deletions
  1. 1 1
      data/web/inc/functions.relayhost.inc.php

+ 1 - 1
data/web/inc/functions.relayhost.inc.php

@@ -27,7 +27,7 @@ function relayhost($_action, $_data = null) {
         $stmt->execute(array(
           ':hostname' => $hostname,
           ':username' => $username,
-          ':password' => $password,
+          ':password' => str_replace(':', '\:', $password),
           ':active' => '1'
         ));
       }