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
...@@ -637,6 +637,11 @@ function replaceLine($filename, $search_pattern, $new_line, $strict = 0, $append ...@@ -637,6 +637,11 @@ function replaceLine($filename, $search_pattern, $new_line, $strict = 0, $append
$out .= $line; $out .= $line;
} }
} }
if (!$found) {
if (trim($line) == $new_line) {
$found = 1;
}
}
} }
if($found == 0) { if($found == 0) {
//* add \n if the last line does not end with \n or \r //* add \n if the last line does not end with \n or \r
......
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