diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2018-01-26 09:50:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-26 09:50:31 +0100 |
commit | 68f44a9a9323171a850b1a9f75888c48c3283e49 (patch) | |
tree | 1ed7a85d1804af4fae41e982817305ccf59d53c9 /apps | |
parent | 43ed8b446c86569158fc17fdbfc7f83eb1d807a9 (diff) | |
parent | 464f024fa9501b2644a02198768d32f6d057f4bb (diff) | |
download | nextcloud-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')
-rw-r--r-- | apps/encryption/lib/Crypto/Crypt.php | 2 | ||||
-rw-r--r-- | apps/workflowengine/lib/Controller/RequestTime.php | 2 |
2 files changed, 2 insertions, 2 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')); } diff --git a/apps/workflowengine/lib/Controller/RequestTime.php b/apps/workflowengine/lib/Controller/RequestTime.php index dd0efa89b91..1a07ca20a4d 100644 --- a/apps/workflowengine/lib/Controller/RequestTime.php +++ b/apps/workflowengine/lib/Controller/RequestTime.php @@ -37,7 +37,7 @@ class RequestTime extends Controller { if ($search !== '') { $timezones = array_filter($timezones, function ($timezone) use ($search) { - return strpos(strtolower($timezone), strtolower($search)) !== false; + return stripos($timezone, $search) !== false; }); } |