diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php index 8268be05d4..a7ffb401b7 100644 --- a/lib/private/L10N/Factory.php +++ b/lib/private/L10N/Factory.php @@ -407,7 +407,8 @@ class Factory implements IFactory { $body .= ';'; $res = ''; $p = 0; - for($i = 0; $i < strlen($body); $i++) { + $length = strlen($body); + for($i = 0; $i < $length; $i++) { $ch = $body[$i]; switch ( $ch ) { case '?':