diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-12-18 16:11:51 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-12-18 16:11:51 +0000 |
commit | 02c41e9eb15fb1bb1e6d3c3013f81da67a0e1204 (patch) | |
tree | f00575346cede8085f4a54843185c715dece2389 /IkiWiki | |
parent | 93e86f654fd8f7f98121452affd38b226f87588a (diff) |
use POST
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/poll.pm | 3 |
1 files changed, 2 insertions, 1 deletions
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.="<form action=\"$config{cgiurl}\">\n"; + # use POST to avoid robots + $ret.="<form method=\"POST\" action=\"$config{cgiurl}\">\n"; } my $percent=$total > 0 ? int($choices{$choice} / $total * 100) : 0; $ret.="<p>\n"; |