From 246c1ec2421abef7eb2a060ad2b42982dde5affe Mon Sep 17 00:00:00 2001 From: David Lopez Date: Thu, 15 Sep 2022 18:19:02 +0200 Subject: [PATCH] Ensure strlen is not called with NULL values to avoid a deprecation warning --- lib/Auth/OAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Auth/OAuth.php b/lib/Auth/OAuth.php index fc963560..1ea8ca9a 100755 --- a/lib/Auth/OAuth.php +++ b/lib/Auth/OAuth.php @@ -522,7 +522,7 @@ protected function getQueryParameters($isPost, $parameters) */ protected function isOauth1() { - return strlen($this->_request_token_url) > 0; + return !empty($this->_request_token_url) && strlen($this->_request_token_url) > 0; } /**