Allow spaces in user custom fields, issue #465

git-svn-id: svn://192.168.202.10@2205 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2014-11-25 04:55:31 +00:00
parent 66d7598dac
commit 3ca06bef17
+10 -7
View File
@@ -2810,14 +2810,16 @@ if ($non_latin < 1)
$vtiger_dbname = preg_replace('/[^-\.\:\/\@\_0-9a-zA-Z]/','',$vtiger_dbname);
$vtiger_login = preg_replace('/[^-\.\:\/\@\_0-9a-zA-Z]/','',$vtiger_login);
$vtiger_pass = preg_replace('/[^-\.\:\/\@\_0-9a-zA-Z]/','',$vtiger_pass);
$custom_one = preg_replace('/[^-\.\:\/\@\_0-9a-zA-Z]/','',$custom_one);
$custom_two = preg_replace('/[^-\.\:\/\@\_0-9a-zA-Z]/','',$custom_two);
$custom_three = preg_replace('/[^-\.\:\/\@\_0-9a-zA-Z]/','',$custom_three);
$custom_four = preg_replace('/[^-\.\:\/\@\_0-9a-zA-Z]/','',$custom_four);
$custom_five = preg_replace('/[^-\.\:\/\@\_0-9a-zA-Z]/','',$custom_five);
$external_server_ip = preg_replace('/[^-\.\:\/\@\_0-9a-zA-Z]/','',$external_server_ip);
$alt_server_ip = preg_replace('/[^-\.\:\/\@\_0-9a-zA-Z]/','',$alt_server_ip);
### ALPHA-NUMERIC and underscore and dash and slash and at and dot and space
$custom_one = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','',$custom_one);
$custom_two = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','',$custom_two);
$custom_three = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','',$custom_three);
$custom_four = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','',$custom_four);
$custom_five = preg_replace('/[^- \.\:\/\@\_0-9a-zA-Z]/','',$custom_five);
### ALPHA-NUMERIC and underscore and dash and slash and at and dot and pound and star
$extension = preg_replace('/[^-\*\#\.\:\/\@\_0-9a-zA-Z]/','',$extension);
$timer_action_destination = preg_replace('/[^-\*\#\.\:\/\@\_0-9a-zA-Z]/','',$timer_action_destination);
@@ -3385,12 +3387,13 @@ else
# 141121-0116 - Added campaign options for comments and QC comment history display in agent screen
# 141124-2138 - Added show_previous_callback campaign option
# 141124-2226 - Added clear_script campaign option
# 141124-2352 - Allow spaces in user custom fields, issue #465
#
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time
$admin_version = '2.10-456a';
$build = '141124-2226';
$admin_version = '2.10-457a';
$build = '141124-2352';
$STARTtime = date("U");
$SQLdate = date("Y-m-d H:i:s");