summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-05-18 13:27:22 +0200
committerVincent Petry <pvince81@owncloud.com>2015-05-18 13:27:22 +0200
commit9d3d7ec659985b0d75155ed03a0028c6fcfbf8b4 (patch)
treedb6c74ebb78b9ae408fed067cb7228f073756993 /lib
parent85f500f07037cab21757fffcae7a5cd78db43bd1 (diff)
downloadnextcloud-server-9d3d7ec659985b0d75155ed03a0028c6fcfbf8b4.tar.gz
nextcloud-server-9d3d7ec659985b0d75155ed03a0028c6fcfbf8b4.zip
Small perf tweak in strlen loop
Diffstat (limited to 'lib')
-rw-r--r--lib/private/files/stream/encryption.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/files/stream/encryption.php b/lib/private/files/stream/encryption.php
index 0262405f367..951d3b9e86f 100644
--- a/lib/private/files/stream/encryption.php
+++ b/lib/private/files/stream/encryption.php
@@ -299,7 +299,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