Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eduGAIN Technical Site
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
edugain
eduGAIN OT
eduGAIN Technical Site
Commits
0ef46138
Commit
0ef46138
authored
1 year ago
by
Tomasz Wolniewicz
Browse files
Options
Downloads
Patches
Plain Diff
Fixes to API
parent
870121e7
No related branches found
No related tags found
1 merge request
!14
Fixes to API
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/API.php
+4
-2
4 additions, 2 deletions
lib/API.php
with
4 additions
and
2 deletions
lib/API.php
+
4
−
2
View file @
0ef46138
...
...
@@ -101,7 +101,7 @@ class API {
foreach
(
$supportedOptions
as
$opt
)
{
$this
->
assignOpt
(
$opt
);
}
//
print_r($this->opts
);
Utils
::
debug
(
5
,
$this
->
opts
,
"OPTS: "
,
"
\n
"
);
}
private
function
optionError
(
$optName
)
{
...
...
@@ -300,15 +300,18 @@ class API {
if
(
$optValue
!=
1
&&
$optValue
!=
2
)
{
$optValue
=
0
;
}
break
;
case
'details'
:
if
(
$optValue
!=
1
)
{
$optValue
=
0
;
}
break
;
case
'valid_sec'
:
$optValue
=
filter_var
(
$optValue
,
FILTER_SANITIZE_NUMBER_INT
);
if
(
$optValue
==
''
)
{
$optValue
=
0
;
}
break
;
default
:
}
$this
->
opts
[
$optName
]
=
$optValue
;
...
...
@@ -608,7 +611,6 @@ class API {
if
(
$this
->
opts
[
'help'
]
==
1
)
{
return
""
;
}
Utils
::
debug
(
5
,
$this
->
opts
,
"OPTS: "
,
"
\n
"
);
$edugain
=
new
eduGAIN
(
5
,
$this
->
fed_id
,
true
);
$edugain
->
load_federations_state
();
if
(
$this
->
opts
[
'only_errors'
]
>
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Tomasz Wolniewicz
@twoln
mentioned in commit
3b0b9d5c
·
1 year ago
mentioned in commit
3b0b9d5c
mentioned in commit 3b0b9d5c4163b0de1c50da311fc483b44bc547b2
Toggle commit list
Tomasz Wolniewicz
@twoln
mentioned in merge request
!15 (merged)
·
1 year ago
mentioned in merge request
!15 (merged)
mentioned in merge request !15
Toggle commit list
Tomasz Wolniewicz
@twoln
mentioned in commit
bdfd25bd
·
1 year ago
mentioned in commit
bdfd25bd
mentioned in commit bdfd25bd776a723033db74e511dd8542958d627c
Toggle commit list
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