mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-29 18:05:28 +00:00
FS-5613 --resolve only alphanumeric plus - _ . are now allowed
This commit is contained in:
parent
eb56f74d50
commit
8644541c62
@ -2901,8 +2901,9 @@ static void parse_gateways(sofia_profile_t *profile, switch_xml_t gateways_tag)
|
||||
sofia_gateway_t *gateway;
|
||||
char *pkey = switch_mprintf("%s::%s", profile->name, name);
|
||||
|
||||
if (zstr(name)) {
|
||||
name = "anonymous";
|
||||
if (zstr(name) || switch_regex_match(name, "^[\\w\\.\\-\\_]+$") != SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Ignoring invalid name '%s'\n", name ? name : "NULL");
|
||||
goto skip;
|
||||
}
|
||||
|
||||
switch_mutex_lock(mod_sofia_globals.hash_mutex);
|
||||
|
Loading…
x
Reference in New Issue
Block a user