Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISPConfig
ISPConfig 3
Commits
665999f6
Commit
665999f6
authored
May 17, 2017
by
Marius Burkard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- param handling for REST
parent
a2bc35c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
interface/lib/classes/rest_handler.inc.php
interface/lib/classes/rest_handler.inc.php
+1
-0
No files found.
interface/lib/classes/rest_handler.inc.php
View file @
665999f6
...
...
@@ -166,6 +166,7 @@ class ISPConfigRESTHandler {
$pname
=
$param
->
name
;
if
(
$pname
==
'session_id'
)
$params
[]
=
(
isset
(
$get
[
'session_id'
])
?
$get
[
'session_id'
]
:
''
);
elseif
(
$pname
==
'primary_id'
&&
$primary_id
)
$params
[]
=
$primary_id
;
elseif
(
$pname
==
'params'
&&
is_array
(
$json
))
$params
[]
=
$json
;
elseif
(
isset
(
$json
[
$pname
]))
$params
[]
=
$json
[
$pname
];
else
$params
[]
=
null
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment