Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
simplesamlphp
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Perun
Perun ProxyIdP
v1
simplesamlphp
Commits
6f292990
Commit
6f292990
authored
10 years ago
by
Frank Tamás
Browse files
Options
Downloads
Patches
Plain Diff
Fix the "hack" with numeric keys of $data array
parent
22b8b576
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/SimpleSAML/Metadata/MetaDataStorageHandlerMDX.php
+5
-8
5 additions, 8 deletions
lib/SimpleSAML/Metadata/MetaDataStorageHandlerMDX.php
with
5 additions
and
8 deletions
lib/SimpleSAML/Metadata/MetaDataStorageHandlerMDX.php
+
5
−
8
View file @
6f292990
...
...
@@ -201,7 +201,8 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
case
'shib13-sp-remote'
:
return
$entity
->
getMetadata1xSP
();
case
'attributeauthority-remote'
:
return
$entity
->
getAttributeAuthorities
();
$ret
=
$entity
->
getAttributeAuthorities
();
return
$ret
[
0
];
default
:
SimpleSAML_Logger
::
warning
(
'MetaData - Handler.MDX: Unknown metadata set: '
.
$set
);
...
...
@@ -262,9 +263,7 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
}
$entity
=
SimpleSAML_Metadata_SAMLParser
::
parseString
(
$xmldata
);
SimpleSAML_Logger
::
debug
(
'MetaData - Handler.MDX: Completed parsing of ['
.
$mdx_url
.
']'
);
SimpleSAML_Logger
::
debug
(
'MetaData - Handler.MDX: Completed parsing of ['
.
$mdx_url
.
']'
);
if
(
$this
->
validateFingerprint
!==
NULL
)
{
if
(
!
$entity
->
validateFingerprint
(
$this
->
validateFingerprint
))
{
...
...
@@ -274,14 +273,12 @@ class SimpleSAML_Metadata_MetaDataStorageHandlerMDX extends SimpleSAML_Metadata_
$data
=
self
::
getParsedSet
(
$entity
,
$set
);
if
(
$data
===
NULL
)
{
throw
new
Exception
(
'No metadata for set "'
.
$set
.
'" available from "'
.
$index
.
'".'
);
throw
new
Exception
(
'No metadata for set "'
.
$set
.
'" available from "'
.
$index
.
'".'
);
}
if
(
is_array
(
$data
[
0
]))
$data
=
$data
[
0
];
$this
->
writeToCache
(
$set
,
$index
,
$data
);
return
$data
;
}
}
\ No newline at end of file
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment