Bug 328108: Unable to login on a fresh Bugzilla install using the login form on the home page - Patch by Fr�d�ric Buclin <LpSolit@gmail.com> r/a=myk

This commit is contained in:
lpsolit%gmail.com 2006-02-23 01:41:13 +00:00
Родитель 8870a7917e
Коммит 7d457a9cff
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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 "";

Просмотреть файл

@ -49,7 +49,7 @@ sub get_param_list {
{
name => 'urlbase',
type => 't',
default => 'http://you-havent-visited-editparams.cgi-yet/',
default => '',
checker => \&check_urlbase
},