From: Alexander Ebert Date: Sun, 15 Dec 2013 15:37:53 +0000 (+0100) Subject: Lame code sniff X-Git-Tag: 2.0.1~49 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=53812f25a76cd5f55dab529f63c1c52451963d7f;p=GitHub%2FWoltLab%2FWCF.git Lame code sniff --- 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]; }