ElkArte Community

Elk Development => Bug Reports => Exterminated Bugs => Topic started by: emanuele on November 05, 2013, 07:06:33 pm

Title: Users id ITS OVER 1000000!!!!
Post by: emanuele on November 05, 2013, 07:06:33 pm
As per http://www.simplemachines.org/community/index.php?topic=513746.0 when the id is bigger than 1000000 it becomes impossible to do a "direct" registration because of the regexp that validates the cookie.

What do you think if (while fixing the regexp) we cast $id in setLoginCookie to int and we simplify that regexp just a little bit?
Title: Re: Users id ITS OVER 1000000!!!!
Post by: Spuds on November 05, 2013, 07:29:23 pm
LOL, thats pretty funny .. yes I would think so ... just cast it to int and you should be able to drop that | }|s:[1-8]:"\d{1,8}" part correct?
Title: Re: Users id ITS OVER 1000000!!!!
Post by: emanuele on November 05, 2013, 07:50:05 pm
Yep, exactly.