chiark / gitweb /
config: permit unknown promise_... settings
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 6 Mar 2013 21:19:57 +0000 (21:19 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 6 Mar 2013 21:19:57 +0000 (21:19 +0000)
cgi-auth-flexible.pm

index 954b021..8517f3b 100644 (file)
@@ -500,7 +500,9 @@ sub new_verifier {
     };
     my ($k,$v);
     while (($k,$v,@_) = @_) {
-       die "unknown setting $k" unless exists $verifier->{S}{$k};
+       die "unknown setting $k" unless
+           $k =~ m/^promise_/ or
+           exists $verifier->{S}{$k};
        $verifier->{S}{$k} = $v;
     }
     bless $verifier, $class;