#13575 fixed api check
This commit is contained in:
parent
9162a9d31f
commit
3d5b6502e5
|
@ -69,6 +69,10 @@ function api_execute(
|
||||||
|
|
||||||
if (empty($url) === true) {
|
if (empty($url) === true) {
|
||||||
$url = 'http://'.$ip.$pandora_url.'/include/api.php?';
|
$url = 'http://'.$ip.$pandora_url.'/include/api.php?';
|
||||||
|
} else {
|
||||||
|
$url_schema = parse_url($url);
|
||||||
|
$url = $url_schema['scheme'].'://'.$url_schema['host'].$pandora_url.'/include/api.php?';
|
||||||
|
}
|
||||||
|
|
||||||
if (empty($op) === false) {
|
if (empty($op) === false) {
|
||||||
$data['op'] = $op;
|
$data['op'] = $op;
|
||||||
|
@ -101,7 +105,6 @@ function api_execute(
|
||||||
$data['user'] = $user;
|
$data['user'] = $user;
|
||||||
$data['pass'] = $password;
|
$data['pass'] = $password;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$url_protocol = parse_url($url)['scheme'];
|
$url_protocol = parse_url($url)['scheme'];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue