Ensure that the folder matches the http_host
authorSeamus Lee <seamuslee001@gmail.com>
Mon, 21 Nov 2016 21:05:20 +0000 (08:05 +1100)
committerColeman Watts <coleman@civicrm.org>
Tue, 22 Nov 2016 03:55:36 +0000 (22:55 -0500)
CRM/Utils/System/DrupalBase.php

index e898b320020092dc8b71aeda7d83d2d7d9c69cb4..943ea51905247840453eab19211210a66a22bf69 100644 (file)
@@ -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;
         }