mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 05:54:19 +02:00
fixed regex typo in installer
This commit is contained in:
parent
790fda7b0e
commit
b735d140ef
@ -153,7 +153,7 @@ if ($INSTALL['wwwroot'] == '') {
|
||||
while(is_dataroot_insecure()) {
|
||||
$parrent = dirname($CFG->dataroot);
|
||||
$i++;
|
||||
if ($parrent == '/' or $parrent == '.' or preg_match('/^[a-z]:\\?$/i', $parrent) or ($i > 100)) {
|
||||
if ($parrent == '/' or $parrent == '.' or preg_match('/^[a-z]:\\\?$/i', $parrent) or ($i > 100)) {
|
||||
$CFG->dataroot = ''; //can not find secure location for dataroot
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user