[geeklog-cvs] geeklog: Reduce default number of questions per poll and answers...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Wed Jan 7 03:53:26 EST 2009
details: http://project.geeklog.net/cgi-bin/hgweb.cgi/rev/5011dba99c14
changeset: 6658:5011dba99c14
user: Dirk Haun <dirk at haun-online.de>
date: Tue Jan 06 13:10:01 2009 +0100
description:
Reduce default number of questions per poll and answers per question to avoid running into the Suhosin default limit for POST vars
diffstat:
2 files changed, 6 insertions(+), 5 deletions(-)
plugins/polls/install_defaults.php | 8 +++-----
public_html/docs/history | 3 +++
diffs (45 lines):
diff -r de9415469b9c -r 5011dba99c14 plugins/polls/install_defaults.php
--- a/plugins/polls/install_defaults.php Tue Jan 06 11:30:03 2009 +0100
+++ b/plugins/polls/install_defaults.php Tue Jan 06 13:10:01 2009 +0100
@@ -10,7 +10,7 @@
// | records. These settings are only used during the initial installation |
// | and not referenced any more once the plugin is installed. |
// +---------------------------------------------------------------------------+
-// | Copyright (C) 2008 by the following authors: |
+// | Copyright (C) 2009 by the following authors: |
// | |
// | Authors: Dirk Haun - dirk AT haun-online DOT de |
// +---------------------------------------------------------------------------+
@@ -30,8 +30,6 @@
// | Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
// | |
// +---------------------------------------------------------------------------+
-//
-// $Id: install_defaults.php,v 1.8 2008/09/21 08:37:08 dhaun Exp $
if (strpos(strtolower($_SERVER['PHP_SELF']), 'install_defaults.php') !== false) {
die('This file can not be used on its own!');
@@ -54,8 +52,8 @@
// Set to 1 to hide the "Polls" entry from the top menu:
$_PO_DEFAULT['hidepollsmenu'] = 0;
-$_PO_DEFAULT['maxquestions'] = 10; // max. number of questions in a poll
-$_PO_DEFAULT['maxanswers'] = 10; // max. number of options in a question
+$_PO_DEFAULT['maxquestions'] = 5; // max. number of questions in a poll
+$_PO_DEFAULT['maxanswers'] = 8; // max. number of options in a question
// 'submitorder' is the order in which answers are saved in admin/poll.php
// 'voteorder' will list answers ordered by number of votes (highest->lowest);
diff -r de9415469b9c -r 5011dba99c14 public_html/docs/history
--- a/public_html/docs/history Tue Jan 06 11:30:03 2009 +0100
+++ b/public_html/docs/history Tue Jan 06 13:10:01 2009 +0100
@@ -86,6 +86,9 @@
Polls plugin
------------
+- Lowered the default number of questions per poll to 5 and the number of
+ answers per question to 8 to avoid running into Suhosin's default
+ post.max_vars limit (for new installs only) [Dirk]
- Fixed SQL error when poll questions contained single quotes (bug #0000756)
[Dirk]
- Fixed handling of poll IDs in Polls editor (bug #0000753) [Dirk]
More information about the geeklog-cvs
mailing list