mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
taint check MODW00T-00
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@11339 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -254,7 +254,9 @@ SWITCH_DECLARE(void) switch_core_set_variable(const char *varname, const char *v
|
||||
free(val);
|
||||
}
|
||||
if (value) {
|
||||
switch_core_hash_insert(runtime.global_vars, varname, strdup(value));
|
||||
char *v = strdup(value);
|
||||
switch_string_var_check(v, SWITCH_TRUE);
|
||||
switch_core_hash_insert(runtime.global_vars, varname, v);
|
||||
} else {
|
||||
switch_core_hash_delete(runtime.global_vars, varname);
|
||||
}
|
||||
|
Reference in New Issue
Block a user