chiark
/
gitweb
/
~ian
/
cgi-auth-flexible.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0e3eb3a
)
fixes
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 19 Mar 2013 01:09:55 +0000
(
01:09
+0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Tue, 19 Mar 2013 01:09:55 +0000
(
01:09
+0000)
cgi-auth-flexible.pm
patch
|
blob
|
history
diff --git
a/cgi-auth-flexible.pm
b/cgi-auth-flexible.pm
index 137de002125ffd661342d9de22bcbcedcb50ed14..4e8b6b87d64a93fcbb34aa576a20ad10c87eb5ad 100644
(file)
--- a/
cgi-auth-flexible.pm
+++ b/
cgi-auth-flexible.pm
@@
-1042,8
+1042,7
@@
sub url_with_query_params ($$;$) {
my $uri = URI->new($r->_ch('get_url'));
$uri->path($uri->path() . $params->{''}[0]) if $params->{''};
my @flatparams = flatten_params($params);
my $uri = URI->new($r->_ch('get_url'));
$uri->path($uri->path() . $params->{''}[0]) if $params->{''};
my @flatparams = flatten_params($params);
- if (defined $nonpagetype
- && $r->nonpage_get_needs_secret_hidden($nonpagetype)) {
+ if (defined $nonpagetype && $r->need_add_hidden('GET',$nonpagetype)) {
push @flatparams, $r->{S}{assoc_param_name}, $r->secret_hidden_val();
}
$uri->query_form(@flatparams);
push @flatparams, $r->{S}{assoc_param_name}, $r->secret_hidden_val();
}
$uri->query_form(@flatparams);
@@
-1078,7
+1077,7
@@
sub check_ok ($) {
}
if ($kind =~ m/^REDIRECT-/) {
}
if ($kind =~ m/^REDIRECT-/) {
- # for redirects, we honour stored
NextParams and Set
Cookie,
+ # for redirects, we honour stored
Params and
Cookie,
# as we would for non-divert
if ($kind eq 'REDIRECT-LOGGEDOUT') {
$params->{$r->{S}{loggedout_param_names}[0]} = [ 1 ];
# as we would for non-divert
if ($kind eq 'REDIRECT-LOGGEDOUT') {
$params->{$r->{S}{loggedout_param_names}[0]} = [ 1 ];