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
318709e6
Commit
318709e6
authored
3 years ago
by
Tim van Dijen
Browse files
Options
Downloads
Patches
Plain Diff
Address some of the comments
parent
5449bf12
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/Sources/MDQ.php
+2
-5
2 additions, 5 deletions
lib/SimpleSAML/Metadata/Sources/MDQ.php
with
2 additions
and
5 deletions
lib/SimpleSAML/Metadata/Sources/MDQ.php
+
2
−
5
View file @
318709e6
...
@@ -149,7 +149,7 @@ class MDQ extends MetaDataStorageSource
...
@@ -149,7 +149,7 @@ class MDQ extends MetaDataStorageSource
return
null
;
return
null
;
}
}
$file
=
new
f
ile
(
$cacheFileName
);
$file
=
new
F
ile
(
$cacheFileName
);
if
(
!
$file
->
isReadable
())
{
if
(
!
$file
->
isReadable
())
{
throw
new
Exception
(
sprintf
(
'%s: could not read cache file for entity [%s]'
,
strval
(
$file
),
__CLASS__
));
throw
new
Exception
(
sprintf
(
'%s: could not read cache file for entity [%s]'
,
strval
(
$file
),
__CLASS__
));
}
}
...
@@ -208,11 +208,8 @@ class MDQ extends MetaDataStorageSource
...
@@ -208,11 +208,8 @@ class MDQ extends MetaDataStorageSource
$cacheFileName
=
$this
->
getCacheFilename
(
$set
,
$entityId
);
$cacheFileName
=
$this
->
getCacheFilename
(
$set
,
$entityId
);
$file
=
new
File
(
$cacheFileName
);
$file
=
new
File
(
$cacheFileName
);
if
(
!
$file
->
isWritable
())
{
throw
new
Exception
(
sprintf
(
'%s: could not write cache file for entity [%s]'
,
__CLASS__
,
strval
(
$file
)));
}
Logger
::
debug
(
sprintf
(
'%s: Writing cache [%s] => [%s]'
,
__CLASS__
,
$entityId
,
strval
(
$file
)));
Logger
::
debug
(
sprintf
(
'%s: Writing cache [%s] => [%s]'
,
__CLASS__
,
$entityId
,
strval
(
$file
)));
$this
->
fileSystem
->
appendToFile
(
strval
(
$file
),
serialize
(
$data
),
true
);
$this
->
fileSystem
->
appendToFile
(
strval
(
$file
),
serialize
(
$data
),
true
);
}
}
...
...
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