update AllowOverride notify

This commit is contained in:
marcos 2020-04-08 10:36:40 +02:00
parent ff3b285f08
commit e86f72958d
1 changed files with 6 additions and 2 deletions

View File

@ -2389,10 +2389,14 @@ class ConsoleSupervisor
$file_lines = preg_split("#\r?\n#", $file, -1, PREG_SPLIT_NO_EMPTY);
$is_none = false;
$i = 0;
foreach ($file_lines as $line) {
if (preg_match('/ AllowOverride/', $line)) {
$i++;
// Check Line and content.
if (preg_match('/ AllowOverride/', $line) && $i === 311) {
$result = explode(' ', $line);
if ($result[9] == 'None') {
if ($result[5] == 'None') {
$is_none = true;
$this->notify(
[