aboutsummaryrefslogtreecommitdiff
path: root/install/ElggInstaller.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-03 11:04:12 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-06-03 11:04:12 +0000
commitdc63bae18867c8932dea1c56a5d3d46a11da5873 (patch)
tree69cffafeeec7373afa3a82f6ea4728870ef192f3 /install/ElggInstaller.php
parent826c37f10cf78859756f246938031b755803d7a7 (diff)
downloadelgg-dc63bae18867c8932dea1c56a5d3d46a11da5873.tar.gz
elgg-dc63bae18867c8932dea1c56a5d3d46a11da5873.tar.bz2
Fixes #3520 fix check for subdirectory in installer
git-svn-id: http://code.elgg.org/elgg/trunk@9136 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'install/ElggInstaller.php')
-rw-r--r--install/ElggInstaller.php2
1 files changed, 1 insertions, 1 deletions
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;