From f4c74c692d71e93a22cbc7851cca91a8969a9b79 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 30 Jul 2007 18:35:54 +0000 Subject: web commit by http://ethan.betacantrips.com/: ugh, this is better --- doc/todo/cgi_hooks_get_session_objects.mdwn | 46 ++--------------------------- 1 file changed, 2 insertions(+), 44 deletions(-) (limited to 'doc/todo') diff --git a/doc/todo/cgi_hooks_get_session_objects.mdwn b/doc/todo/cgi_hooks_get_session_objects.mdwn index 85d37fe2b..c4bcdf185 100644 --- a/doc/todo/cgi_hooks_get_session_objects.mdwn +++ b/doc/todo/cgi_hooks_get_session_objects.mdwn @@ -1,44 +1,2 @@ -This patch gives CGI hooks access to the session object. This enables more -complicated CGI plugins (that require access control, for example). --Ethan - -
-Index: IkiWiki/CGI.pm
-===================================================================
---- IkiWiki/CGI.pm	(revision 3946)
-+++ IkiWiki/CGI.pm	(working copy)
-@@ -636,7 +636,7 @@
- 	
- 		$q=CGI->new;
- 	
--		run_hooks(cgi => sub { shift->($q) });
-+		run_hooks(cgi => sub { shift->($q, $session) });
- 	}
- 
- 	my $do=$q->param('do');
-Index: IkiWiki/Plugin/search.pm
-===================================================================
---- IkiWiki/Plugin/search.pm	(revision 3946)
-+++ IkiWiki/Plugin/search.pm	(working copy)
-@@ -72,7 +72,7 @@
- 	estcfg();
- } #}}}
- 
--sub cgi ($) { #{{{
-+sub cgi ($$) { #{{{
- 	my $cgi=shift;
- 
- 	if (defined $cgi->param('phrase') || defined $cgi->param("navi")) {
-Index: IkiWiki/Plugin/poll.pm
-===================================================================
---- IkiWiki/Plugin/poll.pm	(revision 3946)
-+++ IkiWiki/Plugin/poll.pm	(working copy)
-@@ -74,7 +74,7 @@
- 	return "
$ret
"; - } # }}} - --sub cgi ($) { #{{{ -+sub cgi ($$) { #{{{ - my $cgi=shift; - if (defined $cgi->param('do') && $cgi->param('do') eq "poll") { - my $choice=$cgi->param('choice'); -
\ No newline at end of file +How about a hook to allow CGI objects to insist on authenticated users +only? I think "authcgi" would be a good name. --Ethan \ No newline at end of file -- cgit v1.2.3