#81: Profile doesn't exist if u/n only numbers

12 years 11 months ago #78710 by beat
fix is to replace line 31 of router.php (the "if ( $username ...." statement) by:

[code:1] if ( $username && ! ( preg_match( '+[@:/\n\r\t\a\e\f\v\x00]+', $username ) || is_numeric( $username ) ) ) {
[/code:1]

Beat - Community Builder Team Member

Before posting on forums: Read FAQ thoroughly -- Help us spend more time coding by helping others in this forum, many thanks :)
CB links: Our membership - CBSubs - Templates - Hosting - Forge - Send me a Private Message (PM) only for private/confidential info

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.145 seconds

Facebook Twitter LinkedIn