From aa1db199635887a0f031b286924393b0412b0477 Mon Sep 17 00:00:00 2001 From: Kevin Richter Date: Thu, 2 Mar 2017 12:18:09 +0100 Subject: [PATCH] fix preg_match call --- include/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/index.php b/include/index.php index 296dfa9..f951dbf 100644 --- a/include/index.php +++ b/include/index.php @@ -11,7 +11,7 @@ } $path = "/mnt/data/output/"; -if(preg_match("/^bleeding\\.maps4news\\.com$/i")) { +if(preg_match("/^bleeding\\.maps4news\\.com$/i", $_SERVER['HTTP_HOST'])) { $path = "/var/ace/output/"; }