Skip to content
Snippets Groups Projects
Commit ae87f6f0 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

fixes #3618

Closes #3618

Merge request studip/studip!2520
parent f86e589f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
......
......@@ -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
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment