From 53812f25a76cd5f55dab529f63c1c52451963d7f Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 15 Dec 2013 16:37:53 +0100 Subject: [PATCH] Lame code sniff --- .../files/lib/system/exporter/AbstractExporter.class.php | 3 ++- 1 file changed, 2 insertions(+), 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 f7660dfa52..77b1cc3e3b 100644 --- a/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php +++ b/wcfsetup/install/files/lib/system/exporter/AbstractExporter.class.php @@ -106,7 +106,8 @@ abstract class AbstractExporter implements IExporter { public function init() { $host = $this->databaseHost; $port = 0; - if (preg_match('^~([0-9.]+):([0-9]{1,5})~$', $host, $matches)) { // simple check, does not care for valid ip addresses + 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