Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gavin Pryke
linuxmce
Commits
3a5ecec4
Commit
3a5ecec4
authored
Apr 04, 2017
by
Alblasco1702
Browse files
Update firewall.php
parent
464133c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
web/lmce-admin/operations/network/firewall.php
View file @
3a5ecec4
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment