use POST
parent
93e86f654f
commit
02c41e9eb1
|
@ -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";
|
||||
|
|
|
@ -3,4 +3,6 @@ The [[plugins/poll]] plugin uses GET for the vote links. As a result, the
|
|||
|
||||
done -- [[Joey]]
|
||||
|
||||
Not quite; [the `<form>` `method` attribute defaults to GET](http://www.w3.org/TR/html401/interact/forms.html#adef-method). The forms each need the attribute `method="POST"`.
|
||||
Not quite; [the `<form>` `method` attribute defaults to GET](http://www.w3.org/TR/html401/interact/forms.html#adef-method). The forms each need the attribute `method="POST"`.
|
||||
|
||||
[[bugs/done]] -- [[Joey]]
|
||||
|
|
|
@ -10,4 +10,4 @@ log back in, try out the OpenID signup process if you don't already have an
|
|||
OpenID, and see how OpenID works for you. And let me know your feelings about
|
||||
making such a switch. --[[Joey]]
|
||||
|
||||
[[poll 10 "Accept only OpenID for logins" 6 "Accept only password logins" 8 "Accept both"]]
|
||||
[[poll 9 "Accept only OpenID for logins" 5 "Accept only password logins" 7 "Accept both"]]
|
||||
|
|
Loading…
Reference in New Issue