[geeklog-cvs] geeklog-1.3/public_html comment.php,1.32,1.32.2.1
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Tue Jun 1 02:32:12 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv31039/public_html
Modified Files:
Tag: geeklog_1_3_6_1
comment.php
Log Message:
Fix for the anonymous comment spamming even if comments for anonymous users were switched off.
Index: comment.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/comment.php,v
retrieving revision 1.32
retrieving revision 1.32.2.1
diff -C2 -d -r1.32 -r1.32.2.1
*** comment.php 10 Sep 2002 14:50:56 -0000 1.32
--- comment.php 1 Jun 2004 06:32:10 -0000 1.32.2.1
***************
*** 212,218 ****
*
*/
! function savecomment($uid,$save,$anon,$title,$comment,$sid,$pid,$type,$postmode)
{
! global $_TABLES, $_CONF, $LANG03, $REMOTE_ADDR;
// Get signature
--- 212,234 ----
*
*/
! function savecomment($uid,$save,$anon,$title,$comment,$sid,$pid,$type,$postmode)
{
! global $_CONF, $_TABLES, $_USER, $LANG03, $REMOTE_ADDR;
!
! $retval = '';
!
! // ignore $uid as it may be manipulated anyway
! if (empty ($_USER['uid'])) {
! $uid = 1;
! } else {
! $uid = $_USER['uid'];
! }
!
! if (empty ($sid) || empty ($title) || empty ($comment) || empty ($type) ||
! (($uid == 1) && (($_CONF['loginrequired'] == 1) ||
! ($_CONF['commentsloginrequired'] == 1)))) {
! $retval .= COM_refresh ($_CONF['site_url'] . '/index.php');
! return $retval;
! }
// Get signature
More information about the geeklog-cvs
mailing list