summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkiko%async.com.br <>2003-11-21 05:21:16 +0100
committerkiko%async.com.br <>2003-11-21 05:21:16 +0100
commit07fc6c828ad4aeb8736f3be8b5a1c30e708d31d5 (patch)
treebf769b78c1ba445f0c4e8215294e49e0548e14ae
parentfda0c6bdb84474e1d28ea3d6a781dd7190645283 (diff)
downloadbugzilla-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.pl6
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";
}
}