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
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
bc1de263
Commit
bc1de263
authored
2 years ago
by
Tim van Dijen
Browse files
Options
Downloads
Patches
Plain Diff
Remove unnecessary code
parent
fc1ffee7
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
src/SimpleSAML/Metadata/MetaDataStorageHandlerPdo.php
+5
-13
5 additions, 13 deletions
src/SimpleSAML/Metadata/MetaDataStorageHandlerPdo.php
with
5 additions
and
13 deletions
src/SimpleSAML/Metadata/MetaDataStorageHandlerPdo.php
+
5
−
13
View file @
bc1de263
...
...
@@ -96,7 +96,7 @@ class MetaDataStorageHandlerPdo extends MetaDataStorageSource
throw
new
Error\Exception
(
"Cannot decode metadata for entity '${d['entity_id']}'"
);
}
if
(
!
array_key_exists
(
'entityid'
,
$data
))
{
$data
[
'entity
id
'
]
=
$d
[
'entity_id'
];
$data
[
'entity
ID
'
]
=
$d
[
'entity_id'
];
}
$metadata
[
$d
[
'entity_id'
]]
=
$data
;
}
...
...
@@ -159,18 +159,10 @@ class MetaDataStorageHandlerPdo extends MetaDataStorageSource
}
$tableName
=
$this
->
getTableName
(
$set
);
if
(
substr
(
$set
,
-
10
)
==
'idp-hosted'
)
{
$stmt
=
$this
->
db
->
read
(
"SELECT entity_id, entity_data FROM
{
$tableName
}
WHERE (entity_id LIKE :entityId)"
,
[
'entityId'
=>
$entityId
]
);
}
else
{
// other metadata types should be able to match on entity id
$stmt
=
$this
->
db
->
read
(
"SELECT entity_id, entity_data FROM
{
$tableName
}
WHERE entity_id = :entityId"
,
[
'entityId'
=>
$entityId
]
);
}
$stmt
=
$this
->
db
->
read
(
"SELECT entity_id, entity_data FROM
{
$tableName
}
WHERE entity_id = :entityId"
,
[
'entityId'
=>
$entityId
]
);
// throw pdo exception upon execution failure
if
(
!
$stmt
->
execute
())
{
...
...
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