From 02c41e9eb15fb1bb1e6d3c3013f81da67a0e1204 Mon Sep 17 00:00:00 2001 From: joey Date: Mon, 18 Dec 2006 16:11:51 +0000 Subject: use POST --- IkiWiki/Plugin/poll.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'IkiWiki/Plugin') diff --git a/IkiWiki/Plugin/poll.pm b/IkiWiki/Plugin/poll.pm index 654d46247..c040deb76 100644 --- a/IkiWiki/Plugin/poll.pm +++ b/IkiWiki/Plugin/poll.pm @@ -45,7 +45,8 @@ sub preprocess (@) { #{{{ my $ret=""; foreach my $choice (@choices) { if ($open && exists $config{cgiurl}) { - $ret.="
\n"; + # use POST to avoid robots + $ret.="\n"; } my $percent=$total > 0 ? int($choices{$choice} / $total * 100) : 0; $ret.="

\n"; -- cgit v1.2.3