aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Log.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Log.php')
-rw-r--r--lib/private/Log.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Log.php b/lib/private/Log.php
index c139510a3b3..99797b938db 100644
--- a/lib/private/Log.php
+++ b/lib/private/Log.php
@@ -242,8 +242,8 @@ class Log implements ILogger, IDataLogger {
$request = \OC::$server->getRequest();
if ($request->getMethod() === 'PUT' &&
- strpos($request->getHeader('Content-Type'), 'application/x-www-form-urlencoded') === false &&
- strpos($request->getHeader('Content-Type'), 'application/json') === false) {
+ !str_contains($request->getHeader('Content-Type'), 'application/x-www-form-urlencoded') &&
+ !str_contains($request->getHeader('Content-Type'), 'application/json')) {
$logSecretRequest = '';
} else {
$logSecretRequest = $request->getParam('log_secret', '');
@@ -391,7 +391,7 @@ class Log implements ILogger, IDataLogger {
foreach ($context as $key => $val) {
$fullKey = '{' . $key . '}';
$replace[$fullKey] = $val;
- if (strpos($message, $fullKey) !== false) {
+ if (str_contains($message, $fullKey)) {
$usedContextKeys[$key] = true;
}
}