Merge pull request #16406 from owncloud/enc-strlenperffix
Small perf tweak in strlen loop
This commit is contained in:
commit
1469177a3a
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ class Encryption extends Wrapper {
|
|||
|
||||
$length = 0;
|
||||
// loop over $data to fit it in 6126 sized unencrypted blocks
|
||||
while (strlen($data) > 0) {
|
||||
while (isset($data[0])) {
|
||||
$remainingLength = strlen($data);
|
||||
|
||||
// set the cache to the current 6126 block
|
||||
|
|
Loading…
Reference in a new issue