[vhffs-dev] [1691] fixed PunBB patch so that registered users can post new topics

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1691
Author:   gradator
Date:     2011-05-06 10:22:44 +0200 (Fri, 06 May 2011)
Log Message:
-----------
fixed PunBB patch so that registered users can post new topics

Modified Paths:
--------------
    branches/vhffs-4.3/ChangeLog
    branches/vhffs-4.3/vhffs-forum/punbb-1.3.5_vhffs.patch
    trunk/ChangeLog
    trunk/vhffs-forum/punbb-1.3.5_vhffs.patch

Modified: branches/vhffs-4.3/ChangeLog
===================================================================
--- branches/vhffs-4.3/ChangeLog	2011-05-01 20:26:17 UTC (rev 1690)
+++ branches/vhffs-4.3/ChangeLog	2011-05-06 08:22:44 UTC (rev 1691)
@@ -1,3 +1,6 @@
+VHFFS 4.3.1
+	- Fixed PunBB patch so that registered users can post new topics
+
 VHFFS 4.3.0
 	- Added information in history about wich user generated which entry
 	- fixed modobot perl 4 syntax

Modified: branches/vhffs-4.3/vhffs-forum/punbb-1.3.5_vhffs.patch
===================================================================
--- branches/vhffs-4.3/vhffs-forum/punbb-1.3.5_vhffs.patch	2011-05-01 20:26:17 UTC (rev 1690)
+++ branches/vhffs-4.3/vhffs-forum/punbb-1.3.5_vhffs.patch	2011-05-06 08:22:44 UTC (rev 1691)
@@ -578,7 +578,7 @@
  		$errors[] = $lang_post['CSRF token mismatch'];
  
 +	//Check that the antispam code is ok
-+	if( crypt($_POST['antibot_test'] , $_POST['code']) != $_POST['code'])
++	if( $forum_user['is_guest'] && crypt($_POST['antibot_test'] , $_POST['code']) != $_POST['code'])
 +	{
 +		$errors[] = $lang_post['Captcha failed'];
 +	}

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2011-05-01 20:26:17 UTC (rev 1690)
+++ trunk/ChangeLog	2011-05-06 08:22:44 UTC (rev 1691)
@@ -1,3 +1,6 @@
+VHFFS 4.3.1
+	- Fixed PunBB patch so that registered users can post new topics
+
 VHFFS 4.3.0
 	- Added information in history about wich user generated which entry
 	- fixed modobot perl 4 syntax

Modified: trunk/vhffs-forum/punbb-1.3.5_vhffs.patch
===================================================================
--- trunk/vhffs-forum/punbb-1.3.5_vhffs.patch	2011-05-01 20:26:17 UTC (rev 1690)
+++ trunk/vhffs-forum/punbb-1.3.5_vhffs.patch	2011-05-06 08:22:44 UTC (rev 1691)
@@ -578,7 +578,7 @@
  		$errors[] = $lang_post['CSRF token mismatch'];
  
 +	//Check that the antispam code is ok
-+	if( crypt($_POST['antibot_test'] , $_POST['code']) != $_POST['code'])
++	if( $forum_user['is_guest'] && crypt($_POST['antibot_test'] , $_POST['code']) != $_POST['code'])
 +	{
 +		$errors[] = $lang_post['Captcha failed'];
 +	}


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/