mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 12:03:21 +01:00
make sure eol is set (if PHP_EOL is empty? :o)
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9427 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
9066aae03f
commit
abc458bc2a
@ -42,6 +42,7 @@ class messenger
|
||||
|
||||
// Determine EOL character (\n for UNIX, \r\n for Windows and \r for Mac)
|
||||
$this->eol = (!defined('PHP_EOL')) ? (($eol = strtolower(substr(PHP_OS, 0, 3))) == 'win') ? "\r\n" : (($eol == 'mac') ? "\r" : "\n") : PHP_EOL;
|
||||
$this->eol = (!$this->eol) ? "\n" : $this->eol;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user