cvs: pearweb /include/election pear-election.php
| From: | Greg Beaver | Date: | Sat, 02 Dec 2006 23:42:57 +0000 |
| Subject: | cvs: pearweb /include/election pear-election.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-5233@lists.php.net to get a copy of this message | ||
cellog Sat Dec 2 23:42:57 2006 UTC
Modified files:
/pearweb/include/election pear-election.php
Log:
fix validation of allowed voting length
http://cvs.php.net/viewvc.cgi/pearweb/include/election/pear-election.php?r1=1.2&r2=1.3&diff_format=u
Index: pearweb/include/election/pear-election.php
diff -u pearweb/include/election/pear-election.php:1.2
pearweb/include/election/pear-election.php:1.3
--- pearweb/include/election/pear-election.php:1.2 Fri Dec 1 21:19:08 2006
+++ pearweb/include/election/pear-election.php Sat Dec 2 23:42:57 2006
@@ -161,8 +161,8 @@
} else {
if (!is_numeric($_POST['length']) || $_POST['length'] != (int)
$_POST['length']) {
$error[] = 'Voting length is invalid';
- } elseif ($_POST['length'] < 1 || $_POST['length'] > 7) {
- $error[] = 'Voting length must be between 1 and 7 days';
+ } elseif ($_POST['length'] < 1 || $_POST['length'] > 14) {
+ $error[] = 'Voting length must be between 1 and 14 days';
}
}
if (empty($_POST['minimum'])) {