summaryrefslogtreecommitdiffstats
path: root/apps/dav/appinfo
diff options
context:
space:
mode:
authorFaraz Samapoor <f.samapoor@gmail.com>2023-06-02 15:38:19 +0330
committerSimon L <szaimen@e.mail.de>2023-06-12 09:46:07 +0200
commit0bae21b1d1709e136a580b4ef2dc3cc725ca27b8 (patch)
treed86d68c9c2a7f70260863d62d7cd9c6af270e7ca /apps/dav/appinfo
parentc93be182dc0172eed377ba70ce54cd7c83689764 (diff)
downloadnextcloud-server-0bae21b1d1709e136a580b4ef2dc3cc725ca27b8.tar.gz
nextcloud-server-0bae21b1d1709e136a580b4ef2dc3cc725ca27b8.zip
Refactors "strpos" calls in /apps/dav to improve code readability.
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'apps/dav/appinfo')
-rw-r--r--apps/dav/appinfo/v1/webdav.php2
-rw-r--r--apps/dav/appinfo/v2/direct.php2
-rw-r--r--apps/dav/appinfo/v2/remote.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/apps/dav/appinfo/v1/webdav.php b/apps/dav/appinfo/v1/webdav.php
index 8dbe846f3ff..73fea85fa40 100644
--- a/apps/dav/appinfo/v1/webdav.php
+++ b/apps/dav/appinfo/v1/webdav.php
@@ -31,7 +31,7 @@
use Psr\Log\LoggerInterface;
// no php execution timeout for webdav
-if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
+if (!str_contains(@ini_get('disable_functions'), 'set_time_limit')) {
@set_time_limit(0);
}
ignore_user_abort(true);
diff --git a/apps/dav/appinfo/v2/direct.php b/apps/dav/appinfo/v2/direct.php
index cab6109e5e6..c4676e62c4f 100644
--- a/apps/dav/appinfo/v2/direct.php
+++ b/apps/dav/appinfo/v2/direct.php
@@ -27,7 +27,7 @@ declare(strict_types=1);
use \OCA\DAV\Direct\ServerFactory;
// no php execution timeout for webdav
-if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
+if (!str_contains(@ini_get('disable_functions'), 'set_time_limit')) {
@set_time_limit(0);
}
ignore_user_abort(true);
diff --git a/apps/dav/appinfo/v2/remote.php b/apps/dav/appinfo/v2/remote.php
index de2ba989f8d..5d4fb46c407 100644
--- a/apps/dav/appinfo/v2/remote.php
+++ b/apps/dav/appinfo/v2/remote.php
@@ -22,7 +22,7 @@
*
*/
// no php execution timeout for webdav
-if (strpos(@ini_get('disable_functions'), 'set_time_limit') === false) {
+if (!str_contains(@ini_get('disable_functions'), 'set_time_limit')) {
@set_time_limit(0);
}
ignore_user_abort(true);