Fix. Escape hostname string.
This commit is contained in:
parent
65d1a77f7f
commit
55e3563191
|
|
@ -108,7 +108,7 @@ if ($_GET['a'] == "download") {
|
||||||
$sql = "select sip_profile_name from v_sip_profiles ";
|
$sql = "select sip_profile_name from v_sip_profiles ";
|
||||||
$sql .= "where sip_profile_enabled = 'true' ";
|
$sql .= "where sip_profile_enabled = 'true' ";
|
||||||
if ($hostname) {
|
if ($hostname) {
|
||||||
$sql .= "and (sip_profile_hostname = '" . $hostname . "' ";
|
$sql .= "and (sip_profile_hostname = '" . check_str($hostname) . "' ";
|
||||||
$sql .= "or sip_profile_hostname = '' ";
|
$sql .= "or sip_profile_hostname = '' ";
|
||||||
$sql .= "or sip_profile_hostname is null ) ";
|
$sql .= "or sip_profile_hostname is null ) ";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue