From: Ivan Kohler Date: Fri, 15 May 2015 18:35:17 +0000 (-0700) Subject: fix login redirect with query portion (i.e. cust_main.cgi?1) and on errors, RT#21563 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=742413b38cee4b7991643368dc9796500857298c fix login redirect with query portion (i.e. cust_main.cgi?1) and on errors, RT#21563 --- diff --git a/httemplate/loginout/login.html b/httemplate/loginout/login.html index 3c6e2ae9f..8d599ad68 100644 --- a/httemplate/loginout/login.html +++ b/httemplate/loginout/login.html @@ -13,8 +13,10 @@ % } %#
+% my $uri = $r->prev->uri; +% $uri .= '?'. $r->prev->args if length( $r->prev->args ); - + @@ -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;