Skip to content
Snippets Groups Projects
Commit 1469177a authored by Morris Jobke's avatar Morris Jobke
Browse files

Merge pull request #16406 from owncloud/enc-strlenperffix

Small perf tweak in strlen loop
parents c703a3a6 9d3d7ec6
Branches
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment