aboutsummaryrefslogtreecommitdiff
path: root/vendor
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-01-15 11:03:32 +0000
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2024-01-15 11:03:32 +0000
commitae87f6f0a09c11b61555871bd4172db917dff21e (patch)
tree3d7fae2babdd04c8123e4fcf2b1f8cb851e9f1c0 /vendor
parentf86e589fee217af60c1f9698b376906d95825bbf (diff)
fixes #3618
Closes #3618 Merge request studip/studip!2520
Diffstat (limited to 'vendor')
-rw-r--r--vendor/oauth-php/library/OAuthRequest.php2
-rw-r--r--vendor/oauth-php/library/discovery/xrds_parse.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/vendor/oauth-php/library/OAuthRequest.php b/vendor/oauth-php/library/OAuthRequest.php
index 5bde0f3..41448a3 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 c9cf949..7262bd9 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
+?>