summaryrefslogtreecommitdiffstats
path: root/Bugzilla
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla')
-rw-r--r--Bugzilla/DB.pm2
-rw-r--r--Bugzilla/Template.pm2
2 files changed, 2 insertions, 2 deletions
diff --git a/Bugzilla/DB.pm b/Bugzilla/DB.pm
index d84ce873d..292925a6f 100644
--- a/Bugzilla/DB.pm
+++ b/Bugzilla/DB.pm
@@ -312,7 +312,7 @@ sub bz_setup_database {
my @desired_tables = $self->_bz_schema->get_table_list();
foreach my $table_name (@desired_tables) {
- next if grep /^$table_name$/, @current_tables;
+ next if grep($_ eq $table_name, @current_tables);
print "Creating table $table_name ...\n";
my @table_sql = $self->_bz_schema->get_table_ddl($table_name);
diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm
index 3e37ed5e7..29ed2924c 100644
--- a/Bugzilla/Template.pm
+++ b/Bugzilla/Template.pm
@@ -117,7 +117,7 @@ sub getTemplateIncludePath () {
# 'en-uk' etc. but not the otherway round. (This is unfortunally
# not very clearly stated in those RFC; see comment just over 14.5
# in http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4)
- if(my @found = grep /^$lang(-.+)?$/i, @languages) {
+ if(my @found = grep /^\Q$lang\E(-.+)?$/i, @languages) {
push (@usedlanguages, @found);
}
}