[geeklog-cvs] geeklog: The comment speed limit was being ignored (bug #0001003)
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Thu Oct 29 11:54:26 EDT 2009
changeset 7399:5260a7fb13df
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/5260a7fb13df
user: Dirk Haun <dirk at haun-online.de>
date: Thu Oct 29 14:47:18 2009 +0100
description:
The comment speed limit was being ignored (bug #0001003)
diffstat:
public_html/docs/history | 1 +
system/lib-comment.php | 3 ++-
2 files changed, 3 insertions(+), 1 deletions(-)
diffs (31 lines):
diff -r e1700815379b -r 5260a7fb13df public_html/docs/history
--- a/public_html/docs/history Thu Oct 29 13:01:33 2009 +0100
+++ b/public_html/docs/history Thu Oct 29 14:47:18 2009 +0100
@@ -3,6 +3,7 @@
Oct ??, 2009 (1.6.1)
------------
+- The comment speed limit was being ignored (bug #0001003) [Dirk]
- Added an icon to make the plugin update option somewhat more obvious [Dirk]
(icon "stock_update-data.png" taken from Gnome 2.18 icon theme set by
AMAZIGH Aneglus, released under the GPL)
diff -r e1700815379b -r 5260a7fb13df system/lib-comment.php
--- a/system/lib-comment.php Thu Oct 29 13:01:33 2009 +0100
+++ b/system/lib-comment.php Thu Oct 29 14:47:18 2009 +0100
@@ -779,7 +779,7 @@
return $retval;
} else {
COM_clearSpeedlimit ($_CONF['commentspeedlimit'], 'comment');
-
+
$last = 0;
if ($mode != 'edit' && $mode != 'editsubmission'
&& $mode != $LANG03[28] && $mode != $LANG03[34]) {
@@ -1117,6 +1117,7 @@
$pid = 0;
}
+ COM_updateSpeedlimit('comment');
if (empty($title) || empty($comment)) {
COM_errorLog("CMT_saveComment: $uid from {$_SERVER['REMOTE_ADDR']} tried "
. 'to submit a comment with invalid $title and/or $comment.');
More information about the geeklog-cvs
mailing list