Aleksander Machniak
2013-06-26 253f0aed1699c84cbdb684ef53e6c9c56c077d6f
installer/rcube_install.php
@@ -217,10 +217,12 @@
      // save change
      $this->config[$prop] = $value;
      $dump = self::_dump_var($value, $prop);
      // replace the matching line in config file
      $out = preg_replace(
        '/(\$rcmail_config\[\''.preg_quote($prop).'\'\])\s+=\s+(.+);/Uie',
        "'\\1 = ' . rcube_install::_dump_var(\$value, \$prop) . ';'",
        '/(\$rcmail_config\[\''.preg_quote($prop).'\'\])\s+=\s+(.+);/Ui',
        "\\1 = $dump;",
        $out);
    }