diff options
author | lpsolit%gmail.com <> | 2005-07-20 09:14:24 +0000 |
---|---|---|
committer | lpsolit%gmail.com <> | 2005-07-20 09:14:24 +0000 |
commit | 5f9f484fadbdc28be6b0c6b9ab0b67b6fd4d0e9c (patch) | |
tree | 2a298cf1e8bf260063bf40368a179a0cb3ede63a /editsettings.cgi | |
parent | 82787bc9132869edb068904dfc8123414c115639 (diff) | |
download | bugs-5f9f484fadbdc28be6b0c6b9ab0b67b6fd4d0e9c.tar bugs-5f9f484fadbdc28be6b0c6b9ab0b67b6fd4d0e9c.tar.gz bugs-5f9f484fadbdc28be6b0c6b9ab0b67b6fd4d0e9c.tar.bz2 bugs-5f9f484fadbdc28be6b0c6b9ab0b67b6fd4d0e9c.tar.xz bugs-5f9f484fadbdc28be6b0c6b9ab0b67b6fd4d0e9c.zip |
Bug 257767: Option to have fields in CSV files separated by semicolons instead of commas - Patch by Marc Schumann <wurblzap@gmail.com> r=LpSolit a=myk
Diffstat (limited to 'editsettings.cgi')
-rwxr-xr-x | editsettings.cgi | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/editsettings.cgi b/editsettings.cgi index b5e810ba9..80a8921d5 100755 --- a/editsettings.cgi +++ b/editsettings.cgi @@ -54,11 +54,9 @@ sub SaveSettings{ my $old_value = $vars->{'settings'}->{$name}->{'default_value'}; my $enabled = defined $cgi->param("${name}-enabled") || 0; my $value = $cgi->param("${name}"); + my $setting = new Bugzilla::User::Setting($name); - # remove taint - if ($value =~ /^(\w+)$/ ) { - $value = $1; - } + $setting->validate_value($value); if ( ($old_enabled != $enabled) || ($old_value ne $value) ) { |