From ae87f6f0a09c11b61555871bd4172db917dff21e Mon Sep 17 00:00:00 2001 From: Jan-Hendrik Willms <tleilax+studip@gmail.com> Date: Mon, 15 Jan 2024 11:03:32 +0000 Subject: [PATCH] fixes #3618 Closes #3618 Merge request studip/studip!2520 --- vendor/oauth-php/library/OAuthRequest.php | 2 +- vendor/oauth-php/library/discovery/xrds_parse.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/vendor/oauth-php/library/OAuthRequest.php b/vendor/oauth-php/library/OAuthRequest.php index 5bde0f3b41a..41448a35dff 100644 --- a/vendor/oauth-php/library/OAuthRequest.php +++ b/vendor/oauth-php/library/OAuthRequest.php @@ -702,7 +702,7 @@ class OAuthRequest { $v = trim($v); list($name,$value) = explode('=', $v, 2); - if (!empty($value) && $value{0} == '"' && substr($value, -1) == '"') + if (!empty($value) && $value[0] == '"' && substr($value, -1) == '"') { $value = substr(substr($value, 1), 0, -1); } diff --git a/vendor/oauth-php/library/discovery/xrds_parse.php b/vendor/oauth-php/library/discovery/xrds_parse.php index c9cf94997dd..7262bd92144 100644 --- a/vendor/oauth-php/library/discovery/xrds_parse.php +++ b/vendor/oauth-php/library/discovery/xrds_parse.php @@ -75,7 +75,7 @@ function xrds_parse ( $data ) foreach ($uris as $uri) { // TODO: support uris referring to service documents outside this one - if ($uri{0} == '#') + if ($uri[0] == '#') { $id = substr($uri, 1); $oauth = xrds_xrd_oauth($xpath, $id); @@ -203,7 +203,7 @@ function xrds_xrd_oauth_service ( $n ) { $service['consumer_key'] = $value; } - else if ($name{0} != '#') + else if ($name[0] != '#') { $service[strtolower($name)] = $value; } @@ -301,4 +301,4 @@ function xrds_priority ( $elt ) /* vi:set ts=4 sts=4 sw=4 binary noeol: */ -?> \ No newline at end of file +?> -- GitLab