summaryrefslogtreecommitdiffstats
path: root/Bugzilla/Constants.pm
diff options
context:
space:
mode:
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r--Bugzilla/Constants.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm
index ec2b03c05..ff0eeb8e7 100644
--- a/Bugzilla/Constants.pm
+++ b/Bugzilla/Constants.pm
@@ -682,7 +682,7 @@ sub _bz_locations {
$libpath = $1;
my ($localconfig, $datadir);
- if ($project && $project =~ /^(\w+)$/) {
+ if ($project && $project =~ /^([\w-]+)$/) {
$project = $1;
$localconfig = "localconfig.$project";
$datadir = "data/$project";