mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
fix error move agents to metaconsole pandora_enterprise#12086
This commit is contained in:
parent
5316b32b71
commit
4e3fa66c2b
@ -70,7 +70,7 @@ $otherSerialize = get_parameter('other');
|
|||||||
$otherMode = get_parameter('other_mode', 'url_encode');
|
$otherMode = get_parameter('other_mode', 'url_encode');
|
||||||
$returnType = get_parameter('return_type', 'string');
|
$returnType = get_parameter('return_type', 'string');
|
||||||
$info = get_parameter('info', '');
|
$info = get_parameter('info', '');
|
||||||
$raw_decode = (bool) get_parameter('raw_decode', false);
|
$raw_decode = (bool) get_parameter('raw_decode', true);
|
||||||
|
|
||||||
$other = parseOtherParameter($otherSerialize, $otherMode, $raw_decode);
|
$other = parseOtherParameter($otherSerialize, $otherMode, $raw_decode);
|
||||||
$apiPassword = io_output_password(
|
$apiPassword = io_output_password(
|
||||||
|
@ -82,7 +82,7 @@ function parseOtherParameter($other, $otherType, $rawDecode)
|
|||||||
case 'url_encode':
|
case 'url_encode':
|
||||||
$returnVar = [
|
$returnVar = [
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'data' => urldecode($other),
|
'data' => $rawDecode ? rawurldecode($other) : urldecode($other),
|
||||||
];
|
];
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user