mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 17:33:49 +01:00
remove trailing newlines
This commit is contained in:
parent
ca3c4694e6
commit
4be8044921
@ -159,6 +159,11 @@ function do_editsvnchangelog()
|
||||
$cmd = $config['editor'].' '.escapeshellarg($logfile);
|
||||
passthru($cmd);
|
||||
$config['changlog'] = file_get_contents($logfile);
|
||||
// remove trailing newlines
|
||||
while (substr($config['changelog'],-1) == "\n")
|
||||
{
|
||||
$config['changelog'] = substr($config['changelog'],0,-1);
|
||||
}
|
||||
// allow user to abort, by deleting the changelog
|
||||
if (strlen($config['changlog']) <= 2)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user