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:
Anthony Minessale
2009-01-21 21:34:31 +00:00
parent eee55db162
commit 1d5dd03f14
7 changed files with 58 additions and 40 deletions

View File

@@ -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);
}