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:
f83d32c
)
need_add_hidden: support use with the class rather than an object
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 20 Mar 2013 18:29:21 +0000
(18:29 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 20 Mar 2013 18:29:21 +0000
(18:29 +0000)
cgi-auth-flexible.pm
patch
|
blob
|
history
diff --git
a/cgi-auth-flexible.pm
b/cgi-auth-flexible.pm
index 1f44b8d23d74bb77a5e5140e2924091ce09b8353..1b51142bfeab55c2e6883b111e0dbab1f4735209 100644
(file)
--- a/
cgi-auth-flexible.pm
+++ b/
cgi-auth-flexible.pm
@@
-1303,8
+1303,10
@@
sub update_get_need_add_hidden ($$;$) {
sub need_add_hidden ($$) {
my ($r, $method, $reqtype) = @_;
return 1 if $method ne 'GET';
- my $ent = $r->{GetNeedsSecretHidden}{$reqtype};
- return $ent if defined $ent;
+ if (ref $r) {
+ my $ent = $r->{GetNeedsSecretHidden}{$reqtype};
+ return $ent if defined $ent;
+ }
my $ent = $_resource_get_needs_secret_hidden{$reqtype};
return $ent if defined $ent;
die "unsupported nonpage GET type $reqtype";