From: mkanat%bugzilla.org <> Date: Sat, 1 Aug 2009 11:33:35 +0000 (+0000) Subject: Bug 507326: Make it so that the header template doesn't overwrite any template var... X-Git-Tag: bugzilla-3.4.1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ba69fce1e9e8530a83cd80fc00912e7b67d6d77;p=thirdparty%2Fbugzilla.git Bug 507326: Make it so that the header template doesn't overwrite any template var named "target". Patch by Max Kanat-Alexander r=LpSolit, a=LpSolit --- diff --git a/template/en/default/account/auth/login-small.html.tmpl b/template/en/default/account/auth/login-small.html.tmpl index 63f6d50d06..752aa64df0 100644 --- a/template/en/default/account/auth/login-small.html.tmpl +++ b/template/en/default/account/auth/login-small.html.tmpl @@ -23,23 +23,23 @@ [%# Use the current script name. If an empty name is returned, # then we are accessing the home page. %] -[% target = cgi.url("-relative" => 1, "-query" => 1) %] -[% IF !target %] - [% target = "index.cgi" %] +[% login_target = cgi.url("-relative" => 1, "-query" => 1) %] +[% IF !login_target %] + [% login_target = "index.cgi" %] [% END %] [%# If SSL is in use, use 'sslbase', else use 'urlbase'. %] [% IF Param("sslbase") != "" && Param("ssl") != "never" %] - [% target = Param("sslbase") _ target %] + [% login_target = Param("sslbase") _ login_target %] [% ELSE %] - [% target = Param("urlbase") _ target %] + [% login_target = Param("urlbase") _ login_target %] [% END %]
  • | Log In -