From: justdave%bugzilla.org <> Date: Mon, 21 May 2007 23:19:50 +0000 (+0000) Subject: Bug 364008: Work around 405 error on login from home page when using IIS 5. X-Git-Tag: bugzilla-3.0.1~79 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=35ad832e64106ed6b28612f240fef88c3e54d0e9;p=thirdparty%2Fbugzilla.git Bug 364008: Work around 405 error on login from home page when using IIS 5. Patch by Michael Kincaid r=justdave, a=justdave --- diff --git a/template/en/default/account/auth/login-small.html.tmpl b/template/en/default/account/auth/login-small.html.tmpl index 0ea4df3e97..bb0f7a4db7 100644 --- a/template/en/default/account/auth/login-small.html.tmpl +++ b/template/en/default/account/auth/login-small.html.tmpl @@ -25,6 +25,9 @@ # then we are accessing the home page. %] [% script_name = cgi.url(Relative => 1) %] +[% IF !script_name %] + [% script_name = "index.cgi" %] +[% END %] [%# If SSL is in use, use 'sslbase', else use 'urlbase'. %] [% IF Param("sslbase") != "" && Param("ssl") != "never" %] diff --git a/template/en/default/account/auth/login.html.tmpl b/template/en/default/account/auth/login.html.tmpl index f57efc113f..55ec04c0e3 100644 --- a/template/en/default/account/auth/login.html.tmpl +++ b/template/en/default/account/auth/login.html.tmpl @@ -24,6 +24,10 @@ # target: string. URL to go to after login. #%] +[% IF !target %] + [% target = "index.cgi" %] +[% END %] + [% PROCESS global/variables.none.tmpl %] [% PROCESS global/header.html.tmpl