Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
3bf049b5
Commit
3bf049b5
authored
Sep 02, 2010
by
jmontoya
Browse files
Adding trim in the server ini_parser::get_ini_string() function
parent
0ab659dc
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/ini_parser.inc.php
View file @
3bf049b5
...
...
@@ -58,7 +58,11 @@ class ini_parser {
foreach
(
$this
->
config
as
$section
=>
$data
)
{
$content
.
=
"[
$section
]
\n
"
;
foreach
(
$data
as
$item
=>
$value
)
{
if
(
$value
!=
''
)
$content
.
=
"
$item
=
$value
\n
"
;
if
(
$value
!=
''
)
{
$value
=
trim
(
$value
);
$item
=
trim
(
$item
);
$content
.
=
"
$item
=
$value
\n
"
;
}
}
}
return
$content
;
...
...
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