diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-05-15 11:35:17 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-05-15 11:35:17 -0700 |
commit | 742413b38cee4b7991643368dc9796500857298c (patch) | |
tree | d9ec7ed40f63e819d245510d3a0bf3f2b3c954d0 /httemplate | |
parent | 1ceadcdc438057c510677d492048e8898dfc015a (diff) |
fix login redirect with query portion (i.e. cust_main.cgi?1) and on errors, RT#21563
Diffstat (limited to 'httemplate')
-rw-r--r-- | httemplate/loginout/login.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/httemplate/loginout/login.html b/httemplate/loginout/login.html index 3c6e2ae..8d599ad 100644 --- a/httemplate/loginout/login.html +++ b/httemplate/loginout/login.html @@ -13,8 +13,10 @@ % } %# <FORM METHOD="POST" ACTION="<%$url_string%>loginout/login"> +% my $uri = $r->prev->uri; +% $uri .= '?'. $r->prev->args if length( $r->prev->args ); <FORM METHOD="POST" ACTION="/login"> - <INPUT TYPE="hidden" NAME="destination" VALUE="<% $r->prev->unparsed_uri %>"> + <INPUT TYPE="hidden" NAME="destination" VALUE="<% $uri %>"> <TABLE CELLSPACING=0 CELLPADDING=4 BGCOLOR="#cccccc"> <TR> @@ -45,7 +47,7 @@ my %error = ( ); my $error = # $cgi->param('logout') || - $r->prev->subprocess_env("AuthCookieReason"); + $r->prev->subprocess_env('AuthCookieReason'); $error = exists($error{$error}) ? $error{$error} : $error; |