完美解決投票亂碼問題
打開poll.php
找尋
PHP代碼:
$options["$counter"] = str_replace('|', ' | ', $options["$counter"]);
$optionsstring .= '|||' . $options["$counter"]; //||| is delimter, 0 means no votes (as new poll)
修改成
PHP代碼:
$options["$counter"] = str_replace('|||', '', $options["$counter"]);
$optionsstring .= '|||' . $options["$counter"].' '; //||| is delimter, 0 means no votes (as new poll)
找尋
PHP代碼:
$options["$counter"] = str_replace('|', ' | ', $options["$counter"]);
$optionsstring .= '|||' . unhtmlspecialchars($options["$counter"]); //||| is delimter, 0 means no votes (as new poll)
修改成
PHP代碼:
$options["$counter"] = str_replace('|||', '', $options["$counter"]);
$optionsstring .= '|||' . unhtmlspecialchars($options["$counter"]).' '; //||| is delimter, 0 means no votes (as new poll)
這樣就沒問題了。有空可以再幫我試看看是否還有其它的問題。
|