Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
d78ed105
Commit
d78ed105
authored
Feb 16, 2014
by
Till Brehm
Browse files
Fixed: FS#2912 - /etc/suphp/suphp.conf fills with double lines on each update
parent
c1f688ca
Changes
1
Show whitespace changes
Inline
Side-by-side
install/lib/install.lib.php
View file @
d78ed105
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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