summaryrefslogtreecommitdiffstats
path: root/lib/private/arrayparser.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/arrayparser.php')
-rw-r--r--lib/private/arrayparser.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/arrayparser.php b/lib/private/arrayparser.php
index a5e1f6653fc..dab1817c2ed 100644
--- a/lib/private/arrayparser.php
+++ b/lib/private/arrayparser.php
@@ -182,7 +182,9 @@ class ArrayParser {
if (substr($body, -1, 1) !== ',') {
$body .= ',';
}
- for ($i = 0; $i < strlen($body); $i++) {
+
+ $bodyLength = strlen($body);
+ for ($i = 0; $i < $bodyLength; $i++) {
$char = substr($body, $i, 1);
if ($char === '\\') {
if ($escaped) {