Skip to main content
Topic: Users id ITS OVER 1000000!!!! (Read 5768 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Users id ITS OVER 1000000!!!!

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?
Bugs creator.
Features destroyer.
Template killer.

Re: Users id ITS OVER 1000000!!!!

Reply #1

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?

Re: Users id ITS OVER 1000000!!!!

Reply #2

Yep, exactly.
Bugs creator.
Features destroyer.
Template killer.