Merge pull request #13225 from prietojc/patch-13

Update translate.class.php
This commit is contained in:
Laurent Destailleur 2020-02-29 12:58:32 +01:00 committed by GitHub
commit bb5b55f9e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -282,7 +282,7 @@ class Translate
* and split the rest until a line feed.
* This is more efficient than fgets + explode + trim by a factor of ~2.
*/
while ($line = fscanf($fp, "%[^= ]%*[ =]%[^\n]"))
while ($line = fscanf($fp, "%[^= ]%*[ =]%[^\n\r]"))
{
if (isset($line[1]))
{