added non_latin flag to dbconnect.php to remove latin rules for UTF8 variables
git-svn-id: svn://192.168.202.10@475 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
@@ -575,7 +575,10 @@ $talking_to_print = mysql_num_rows($rslt);
|
||||
}
|
||||
$extension = eregi_replace('Local/',"",$row[0]);
|
||||
$extension = sprintf("%-10s", $extension);
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
while(strlen($extension)>10) {$extension = substr("$extension", 0, -1);}
|
||||
}
|
||||
$Luser = $row[1];
|
||||
$user = sprintf("%-18s", $row[1]);
|
||||
$Lsessionid = $row[2];
|
||||
@@ -588,12 +591,18 @@ $talking_to_print = mysql_num_rows($rslt);
|
||||
if ($UGdisplay > 0)
|
||||
{
|
||||
$user_group = sprintf("%-12s", $row[9]);
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
while(strlen($user_group)>12) {$user_group = substr("$user_group", 0, -1);}
|
||||
}
|
||||
}
|
||||
if ($UidORname > 0)
|
||||
{
|
||||
$user = sprintf("%-18s", $row[10]);
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
while(strlen($user)>18) {$user = substr("$user", 0, -1);}
|
||||
}
|
||||
}
|
||||
if (!eregi("INCALL|QUEUE",$row[3]))
|
||||
{$call_time_S = ($STARTtime - $row[6]);}
|
||||
|
||||
@@ -516,6 +516,8 @@ if (isset($_GET["auto_alt_dial"])) {$auto_alt_dial=$_GET["auto_alt_dial"];}
|
||||
|
||||
##### BEGIN VARIABLE FILTERING FOR SECURITY #####
|
||||
|
||||
if ($non_latin < 1)
|
||||
{
|
||||
### DIGITS ONLY ###
|
||||
$adaptive_dropped_percentage = ereg_replace("[^0-9]","",$adaptive_dropped_percentage);
|
||||
$adaptive_latest_server_time = ereg_replace("[^0-9]","",$adaptive_latest_server_time);
|
||||
@@ -766,6 +768,8 @@ $lead_filter_sql = ereg_replace(";","",$lead_filter_sql);
|
||||
|
||||
### VARIABLES not filtered at all ###
|
||||
# $script_text
|
||||
}
|
||||
|
||||
|
||||
##### END VARIABLE FILTERING FOR SECURITY #####
|
||||
|
||||
|
||||
@@ -44,5 +44,6 @@ $local_AMP = '@';
|
||||
$ext_context = 'demo';
|
||||
$recording_exten = '8309';
|
||||
$WeBRooTWritablE = '1';
|
||||
$non_latin = '0'; # set to 1 for UTF rules
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user