Commit 3a5ecec4 authored by Alblasco1702's avatar Alblasco1702
Browse files

Update firewall.php

parent 464133c5
......@@ -1477,7 +1477,7 @@ function writeConf($accessFile, $variable,$oldValue,$newValue)
}
$oldFile=implode('',$oldFileArray);
$stringToReplace=$variable.'='.$oldValue;
if(preg_match($stringToReplace,$oldFile)){
if(preg_match("/".$stringToReplace."/",$oldFile)){
$newFile=str_replace($stringToReplace,$variable.'='.$newValue,$oldFile);
}
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment