From 18e0eec795f702856470969a7f0dc134a3686ffc Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 23 Feb 2006 09:41:13 +0000 Subject: Bug 328108: Unable to login on a fresh Bugzilla install using the login form on the home page - Patch by Frédéric Buclin r/a=myk MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Config/Common.pm | 2 +- Bugzilla/Config/Core.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'Bugzilla') diff --git a/Bugzilla/Config/Common.pm b/Bugzilla/Config/Common.pm index 4ca48b839..ee6e9fe47 100644 --- a/Bugzilla/Config/Common.pm +++ b/Bugzilla/Config/Common.pm @@ -189,7 +189,7 @@ sub check_shadowdb { sub check_urlbase { my ($url) = (@_); - if ($url !~ m:^http.*/$:) { + if ($url && $url !~ m:^http.*/$:) { return "must be a legal URL, that starts with http and ends with a slash."; } return ""; diff --git a/Bugzilla/Config/Core.pm b/Bugzilla/Config/Core.pm index 21b974852..738c28fe2 100644 --- a/Bugzilla/Config/Core.pm +++ b/Bugzilla/Config/Core.pm @@ -49,7 +49,7 @@ sub get_param_list { { name => 'urlbase', type => 't', - default => 'http://you-havent-visited-editparams.cgi-yet/', + default => '', checker => \&check_urlbase }, -- cgit v1.2.3-24-g4f1b