Skip to content

Commit d78ed10

Browse files
author
Till Brehm
committed
Fixed: FS#2912 - /etc/suphp/suphp.conf fills with double lines on each update
1 parent c1f688c commit d78ed10

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install/lib/install.lib.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,11 @@ function replaceLine($filename, $search_pattern, $new_line, $strict = 0, $append
637637
$out .= $line;
638638
}
639639
}
640+
if (!$found) {
641+
if (trim($line) == $new_line) {
642+
$found = 1;
643+
}
644+
}
640645
}
641646
if($found == 0) {
642647
//* add \n if the last line does not end with \n or \r

0 commit comments

Comments
 (0)