Fixed typo
authorAlexander Ebert <ebert@woltlab.com>
Wed, 18 Dec 2013 14:02:28 +0000 (15:02 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 18 Dec 2013 14:02:28 +0000 (15:02 +0100)
wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php

index 77b1cc3e3b3e0e761d7eb01f54692be28a9589e5..7e0eb00f24ef1f13217b19400ea7a3a7d0097308 100644 (file)
@@ -106,7 +106,7 @@ abstract class AbstractExporter implements IExporter {
        public function init() {
                $host = $this->databaseHost;
                $port = 0;
-               if (preg_match('^~([0-9.]+):([0-9]{1,5})~$', $host, $matches)) {
+               if (preg_match('~^([0-9.]+):([0-9]{1,5})$~', $host, $matches)) {
                        // simple check, does not care for valid ip addresses
                        $host = $matches[1];
                        $port = $matches[2];