]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 364008: Work around 405 error on login from home page when using IIS 5.
authorjustdave%bugzilla.org <>
Mon, 21 May 2007 23:19:50 +0000 (23:19 +0000)
committerjustdave%bugzilla.org <>
Mon, 21 May 2007 23:19:50 +0000 (23:19 +0000)
Patch by Michael Kincaid <michael@luidia.com>
r=justdave, a=justdave

template/en/default/account/auth/login-small.html.tmpl
template/en/default/account/auth/login.html.tmpl

index 0ea4df3e97039bd191bed04fe8af5a16f142bba9..bb0f7a4db786e42655ef30db55c9b1c145861f67 100644 (file)
@@ -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" %]
index f57efc113f303b8c0d423f88a5454f4435762745..55ec04c0e37f7f80e6d87360fcafde02cc4940c7 100644 (file)
   # target: string. URL to go to after login.
   #%]
 
+[% IF !target %]
+ [% target = "index.cgi" %]
+[% END %]
+  
 [% PROCESS global/variables.none.tmpl %]
 
 [% PROCESS global/header.html.tmpl