mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 11:43:50 +00:00
Fix. Escape hostname string.
This commit is contained in:
@@ -108,7 +108,7 @@ if ($_GET['a'] == "download") {
|
||||
$sql = "select sip_profile_name from v_sip_profiles ";
|
||||
$sql .= "where sip_profile_enabled = 'true' ";
|
||||
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 is null ) ";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user