Skip to content
Snippets Groups Projects
Commit d78ed105 authored by Till Brehm's avatar Till Brehm
Browse files

Fixed: FS#2912 - /etc/suphp/suphp.conf fills with double lines on each update

parent c1f688ca
No related branches found
No related tags found
No related merge requests found
......@@ -637,6 +637,11 @@ function replaceLine($filename, $search_pattern, $new_line, $strict = 0, $append
$out .= $line;
}
}
if (!$found) {
if (trim($line) == $new_line) {
$found = 1;
}
}
}
if($found == 0) {
//* add \n if the last line does not end with \n or \r
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment