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
e7e8eceb
Commit
e7e8eceb
authored
3 years ago
by
Thijs Kinkhorst
Browse files
Options
Downloads
Patches
Plain Diff
Clean up remaining support for 'debug' as a bool.
parent
7565df19
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/SimpleSAML/Error/Exception.php
+1
-1
1 addition, 1 deletion
lib/SimpleSAML/Error/Exception.php
lib/SimpleSAML/Utils/XML.php
+4
-7
4 additions, 7 deletions
lib/SimpleSAML/Utils/XML.php
with
5 additions
and
8 deletions
lib/SimpleSAML/Error/Exception.php
+
1
−
1
View file @
e7e8eceb
...
...
@@ -200,7 +200,7 @@ class Exception extends \Exception
protected
function
logBacktrace
(
int
$level
=
Logger
::
DEBUG
):
void
{
// Do nothing if backtraces have been disabled in config.
$debug
=
Configuration
::
getInstance
()
->
getArray
ize
(
'debug'
,
[
'backtraces'
=>
true
]);
$debug
=
Configuration
::
getInstance
()
->
getArray
(
'debug'
,
[
'backtraces'
=>
true
]);
if
(
array_key_exists
(
'backtraces'
,
$debug
)
&&
$debug
[
'backtraces'
]
===
false
)
{
return
;
}
...
...
This diff is collapsed.
Click to expand it.
lib/SimpleSAML/Utils/XML.php
+
4
−
7
View file @
e7e8eceb
...
...
@@ -52,7 +52,7 @@ class XML
}
// see if debugging is enabled for XML validation
$debug
=
Configuration
::
getInstance
()
->
getArray
ize
(
'debug'
,
[
'validatexml'
=>
false
]);
$debug
=
Configuration
::
getInstance
()
->
getArray
(
'debug'
,
[
'validatexml'
=>
false
]);
if
(
!
(
...
...
@@ -100,16 +100,13 @@ class XML
}
// see if debugging is enabled for SAML messages
$debug
=
Configuration
::
getInstance
()
->
getArray
ize
(
'debug'
,
[
'saml'
=>
false
]);
$debug
=
Configuration
::
getInstance
()
->
getArray
(
'debug'
,
[
'saml'
=>
false
]);
if
(
!
(
in_array
(
'saml'
,
$debug
,
true
)
// implicitly enabled
||
(
array_key_exists
(
'saml'
,
$debug
)
&&
$debug
[
'saml'
]
===
true
)
// explicitly enabled
// TODO: deprecate the old style and remove it in 2.0
||
(
array_key_exists
(
0
,
$debug
)
&&
$debug
[
0
]
===
true
))
// old style 'debug'
&&
$debug
[
'saml'
]
===
true
)
// explicitly enabled
)
)
{
// debugging messages is disabled
return
;
...
...
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