From c52438cd1960e62579a874c865d5423c217d7aec Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Tue, 22 Nov 2016 08:05:20 +1100 Subject: [PATCH] Ensure that the folder matches the http_host --- CRM/Utils/System/DrupalBase.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/System/DrupalBase.php b/CRM/Utils/System/DrupalBase.php index e898b32002..943ea51905 100644 --- a/CRM/Utils/System/DrupalBase.php +++ b/CRM/Utils/System/DrupalBase.php @@ -646,7 +646,7 @@ abstract class CRM_Utils_System_DrupalBase extends CRM_Utils_System_Base { } //Check if files path exists... - if ($this->checkFilesExists($basepath, $folder)) { + if ($this->checkFilesExists($basepath, $folder) && $folder == $_SERVER['HTTP_HOST']) { $correct = $folder; break; } -- 2.25.1