projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1ceadcd
)
fix login redirect with query portion (i.e. cust_main.cgi?1) and on errors, RT#21563
author
Ivan Kohler
<ivan@freeside.biz>
Fri, 15 May 2015 18:35:17 +0000
(11:35 -0700)
committer
Ivan Kohler
<ivan@freeside.biz>
Fri, 15 May 2015 18:35:17 +0000
(11:35 -0700)
httemplate/loginout/login.html
patch
|
blob
|
history
diff --git
a/httemplate/loginout/login.html
b/httemplate/loginout/login.html
index
3c6e2ae
..
8d599ad
100644
(file)
--- a/
httemplate/loginout/login.html
+++ b/
httemplate/loginout/login.html
@@
-13,8
+13,10
@@
% }
%# <FORM METHOD="POST" ACTION="<%$url_string%>loginout/login">
% }
%# <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">
<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>
<TABLE CELLSPACING=0 CELLPADDING=4 BGCOLOR="#cccccc">
<TR>
@@
-45,7
+47,7
@@
my %error = (
);
my $error = # $cgi->param('logout') ||
);
my $error = # $cgi->param('logout') ||
- $r->prev->subprocess_env(
"AuthCookieReason"
);
+ $r->prev->subprocess_env(
'AuthCookieReason'
);
$error = exists($error{$error}) ? $error{$error} : $error;
$error = exists($error{$error}) ? $error{$error} : $error;