Skip to content

Commit

Permalink
Update translate.class.php
Browse files Browse the repository at this point in the history
Resolve bug #9105
When load() function loads translation file from an external modules, adds a \r simbol at the end of each line.
  • Loading branch information
prietojc committed Feb 27, 2020
1 parent 957295e commit c555a2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/class/translate.class.php
Expand Up @@ -282,7 +282,7 @@ public function load($domain, $alt = 0, $stopafterdirection = 0, $forcelangdir =
* 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]))
{
Expand Down

0 comments on commit c555a2c

Please sign in to comment.