diff options
author | kiko%async.com.br <> | 2003-11-21 05:21:16 +0100 |
---|---|---|
committer | kiko%async.com.br <> | 2003-11-21 05:21:16 +0100 |
commit | 07fc6c828ad4aeb8736f3be8b5a1c30e708d31d5 (patch) | |
tree | bf769b78c1ba445f0c4e8215294e49e0548e14ae | |
parent | fda0c6bdb84474e1d28ea3d6a781dd7190645283 (diff) | |
download | bugzilla-07fc6c828ad4aeb8736f3be8b5a1c30e708d31d5.tar.gz bugzilla-07fc6c828ad4aeb8736f3be8b5a1c30e708d31d5.tar.xz |
Fix for bug 226217: check_languages bustage resulting from sanitizing in
bug 199502. Applied myk's suggestion in patch checked in. r=myk, a=myk.
-rw-r--r-- | defparams.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/defparams.pl b/defparams.pl index 0727364e6..8c1d93917 100644 --- a/defparams.pl +++ b/defparams.pl @@ -150,13 +150,13 @@ sub check_loginmethod { } sub check_languages { - my @languages = split /,/, trim($_); + my @languages = split /[,\s]+/, trim($_[0]); if(!scalar(@languages)) { return "You need to specify a language tag." } foreach my $language (@languages) { - if( ! -d 'template/'.trim($language).'/custom' - && ! -d 'template/'.trim($language).'/default') { + if( ! -d "template/$language/custom" + && ! -d "template/$language/default") { return "The template directory for $language does not exist"; } } |