From: kiko%async.com.br <> Date: Fri, 21 Nov 2003 04:21:16 +0000 (+0000) Subject: Fix for bug 226217: check_languages bustage resulting from sanitizing in X-Git-Tag: bugzilla-2.17.7~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=07fc6c828ad4aeb8736f3be8b5a1c30e708d31d5;p=thirdparty%2Fbugzilla.git 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. --- diff --git a/defparams.pl b/defparams.pl index 0727364e66..8c1d939178 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"; } }