<?php
-// $Id: vote.inc.php,v 1.8 2002/11/29 00:09:01 panda Exp $
+// $Id: vote.inc.php,v 1.9 2002/12/19 09:53:18 panda Exp $
function plugin_vote_init()
{
$cnt = 0;
}
- if($post["vote_$arg"]==$_vote_plugin_votes) $cnt++;
+ $e_arg = encode($arg);
+ if($post["vote_$e_arg"]==$_vote_plugin_votes) $cnt++;
$votes[] = $arg.'['.$cnt.']';
}
}
$link = make_link($arg);
+ $e_arg = encode($arg);
if($tdcnt++ % 2) $cls = "vote_td1";
else $cls = "vote_td2";
$string .= "<tr>"
. "<td align=\"left\" class=\"$cls\" style=\"padding-left:1em;padding-right:1em;\" nowrap=\"nowrap\">$link</td>"
- . "<td align=\"right\" class=\"$cls\" nowrap=\"nowrap\">$cnt <input type=\"submit\" name=\"vote_".htmlspecialchars($arg)."\" value=\"$_vote_plugin_votes\" class=\"submit\" /></td>"
+ . "<td align=\"right\" class=\"$cls\" nowrap=\"nowrap\">$cnt <input type=\"submit\" name=\"vote_".htmlspecialchars($e_arg)."\" value=\"$_vote_plugin_votes\" class=\"submit\" /></td>"
. "</tr>\n";
}