From bb8d06a0e1f44af6fe870b66bc86b3d155fd4cf5 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Wed, 18 Dec 2013 15:02:28 +0100 Subject: [PATCH] Fixed typo --- .../files/lib/system/exporter/AbstractExporter.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php b/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php index 77b1cc3e3b..7e0eb00f24 100644 --- a/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php +++ b/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php @@ -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]; -- 2.20.1