- fixed open_basedir issues, fixes #227
This commit is contained in:
@@ -451,6 +451,10 @@ if($page == 'domains'
|
||||
{
|
||||
standard_error(array('stringisempty', 'mydocumentroot'));
|
||||
}
|
||||
elseif(strstr($documentroot, ":") !== FALSE)
|
||||
{
|
||||
standard_error('pathmaynotcontaincolon');
|
||||
}
|
||||
elseif($customerid == 0)
|
||||
{
|
||||
standard_error('adduserfirst');
|
||||
@@ -744,6 +748,11 @@ if($page == 'domains'
|
||||
{
|
||||
$documentroot = $customer['documentroot'];
|
||||
}
|
||||
|
||||
if(strstr($documentroot, ":") !== FALSE)
|
||||
{
|
||||
standard_error('pathmaynotcontaincolon');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user