Merge pull request #16406 from owncloud/enc-strlenperffix

Small perf tweak in strlen loop
This commit is contained in:
Morris Jobke 2015-07-01 08:54:33 +02:00
commit 1469177a3a

View file

@ -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