Merge pull request #8055 from nextcloud/improve-loop

Improve conditional of loop
This commit is contained in:
Roeland Jago Douma 2018-01-26 09:59:45 +01:00 committed by GitHub
commit e97165e0b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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 '?':