diff options
-rw-r--r-- | lib/private/L10N/Factory.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/L10N/Factory.php b/lib/private/L10N/Factory.php index 8268be05d4b..a7ffb401b7b 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 '?': |