From 798157865c8789ef4fb57e70f0c8b7280b26c9ff Mon Sep 17 00:00:00 2001 From: pasky Date: Tue, 10 Oct 2006 02:54:55 +0200 Subject: [PATCH] Fix CGI error detection --- cgi/Git/RepoCGI.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgi/Git/RepoCGI.pm b/cgi/Git/RepoCGI.pm index 9466d81..b4f585e 100644 --- a/cgi/Git/RepoCGI.pm +++ b/cgi/Git/RepoCGI.pm @@ -392,7 +392,7 @@ sub cgi_fill { # FIXME: Permit only existing users $self->{users} = grep { valid_name($_) } $cgi->param('user'); - $repo->err_check; + not $repo->err_check; } sub form_defaults { @@ -511,7 +511,7 @@ sub cgi_fill { length($self->{keys}) <= 4096 or $repo->err("The list of keys is more than 4kb. Do you really need that much?"); - $repo->err_check; + not $repo->err_check; } sub conjure { -- 2.11.4.GIT