miniBB ® 

miniBB

®
Support Forums
  
 | Start | Register | Search | Statistics | File Bank | Manual |
Bugs miniBB Support Forums / Bugs /  
 

Little bug with resetting cookie

 
Author Paul
Lead Developer 
#1 | Posted: 13 Apr 2010 13:24 
A little bug discovered recently by our team, which affects the default version of authorization file bb_cookie.php. MiniBB will try to reset authorization cookie i.e. make it living longer, if its expiration time stands closely to $cookie_expires setting's value.

In such case, the cookie is being set improperly in the current version, so instead of improving the cookie, it may be completely deleted instead.

Here is a very simple fix: locate the code which says

if($resetCookie) {
deleteMyCookie();
setMyCookie($username,$userpassword,$GLOBALS['cookieexptime']);
}
if($resetCookie) {
deleteMyCookie();
setMyCookie($username,$userpassword,$GLOBALS['cookieexptime'],FALSE);
}
You should add FALSE to the end of the function.

Will be fixed in the next miniBB version.

Author astass
Partaker
#2 | Posted: 14 Apr 2010 01:15 
Thank you.

Author jontrac
Partaker
#3 | Posted: 15 Apr 2010 03:50 
Thanks Paul.

Author Paul
Lead Developer 
#4 | Posted: 15 Apr 2010 08:27 
Thank Sergei for this actually ;-) He discovered this bug.

Fixed in miniBB 2.5.

Bugs miniBB Support Forums / Bugs /
 Little bug with resetting cookie
 Share Topic's Link

This topic is closed. New replies are not allowed.

 

 
miniBB Support Forums Powered by Forum Software miniBB ® Home  Features  Requirements  Demo  Download  Showcase  Gallery of Arts
Compiler  Premium Extensions  Premium Support  License  Contact Us
Install the Captcha add-on: protect your miniBB-forums from the automated spam and flood.


  ⇑