From dc63bae18867c8932dea1c56a5d3d46a11da5873 Mon Sep 17 00:00:00 2001 From: cash Date: Fri, 3 Jun 2011 11:04:12 +0000 Subject: Fixes #3520 fix check for subdirectory in installer git-svn-id: http://code.elgg.org/elgg/trunk@9136 36083f99-b078-4883-b0ff-0f9b5a30f544 --- install/ElggInstaller.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install/ElggInstaller.php') diff --git a/install/ElggInstaller.php b/install/ElggInstaller.php index 584b5cb79..c07839065 100644 --- a/install/ElggInstaller.php +++ b/install/ElggInstaller.php @@ -1330,7 +1330,7 @@ class ElggInstaller { if (!isset($CONFIG->data_dir_override) || !$CONFIG->data_dir_override) { // check that data root is not subdirectory of Elgg root - if (stripos($submissionVars['dataroot'], $submissionVars['path']) !== FALSE) { + if (stripos($submissionVars['dataroot'], $submissionVars['path']) === 0) { $msg = elgg_echo('install:error:locationdatadirectory', array($submissionVars['dataroot'])); register_error($msg); return FALSE; -- cgit v1.2.3