Added filtering to AGI processes to help prevent DID SQL injection attacks
Added nanpa filtering log viewing to new NANPA updating process Fixed span order in vicidial.php Fixed issue with list webform overrides in agent interface other small variable filtering fixes git-svn-id: svn://192.168.202.10@2023 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -484,6 +484,7 @@ $group_string='|';
|
||||
$group_ct = count($groups);
|
||||
while($i < $group_ct)
|
||||
{
|
||||
$groups[$i] = preg_replace("/'|\"|\\\\|;/","",$groups[$i]);
|
||||
if ( (preg_match("/ $groups[$i] /",$regexLOGallowed_campaigns)) or (preg_match("/ALL-/",$LOGallowed_campaigns)) )
|
||||
{
|
||||
$group_string .= "$groups[$i]|";
|
||||
@@ -500,13 +501,13 @@ $user_group_string='|';
|
||||
$user_group_ct = count($user_group_filter);
|
||||
while($i < $user_group_ct)
|
||||
{
|
||||
$user_group_filter[$i] = preg_replace("/'|\"|\\\\|;/","",$user_group_filter[$i]);
|
||||
# if ( (preg_match("/ $user_group_filter[$i] /",$regexLOGallowed_campaigns)) or (preg_match("/ALL-/",$LOGallowed_campaigns)) )
|
||||
# {
|
||||
$user_group_string .= "$user_group_filter[$i]|";
|
||||
$user_group_SQL .= "'$user_group_filter[$i]',";
|
||||
$usergroupQS .= "&user_group_filter[]=$user_group_filter[$i]";
|
||||
# }
|
||||
|
||||
$i++;
|
||||
}
|
||||
$user_group_SQL = preg_replace('/,$/i', '',$user_group_SQL);
|
||||
|
||||
Reference in New Issue
Block a user