summaryrefslogtreecommitdiffstats
path: root/apps/encryption
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-01-26 09:50:31 +0100
committerGitHub <noreply@github.com>2018-01-26 09:50:31 +0100
commit68f44a9a9323171a850b1a9f75888c48c3283e49 (patch)
tree1ed7a85d1804af4fae41e982817305ccf59d53c9 /apps/encryption
parent43ed8b446c86569158fc17fdbfc7f83eb1d807a9 (diff)
parent464f024fa9501b2644a02198768d32f6d057f4bb (diff)
downloadnextcloud-server-68f44a9a9323171a850b1a9f75888c48c3283e49.tar.gz
nextcloud-server-68f44a9a9323171a850b1a9f75888c48c3283e49.zip
Merge pull request #8059 from nextcloud/use-stripos
Use stripos instead of strpos(strtolower(), 'something')
Diffstat (limited to 'apps/encryption')
-rw-r--r--apps/encryption/lib/Crypto/Crypt.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/encryption/lib/Crypto/Crypt.php b/apps/encryption/lib/Crypto/Crypt.php
index 090ca6184d6..4d5c20ea75f 100644
--- a/apps/encryption/lib/Crypto/Crypt.php
+++ b/apps/encryption/lib/Crypto/Crypt.php
@@ -560,7 +560,7 @@ class Crypt {
$signaturePosition = strpos($meta, '00sig00');
// enforce signature for the new 'CTR' ciphers
- if ($signaturePosition === false && strpos(strtolower($cipher), 'ctr') !== false) {
+ if ($signaturePosition === false && stripos($cipher, 'ctr') !== false) {
throw new GenericEncryptionException('Missing Signature', $this->l->t('Missing Signature'));
}