Bug: Registering username with certain characters in Admin center doesn't work

Started by Oldiesmann, August 24, 2004, 11:26:30 AM

Previous topic - Next topic

Oldiesmann

I was testing to see whether or not brackets were allowed in usernames because I wasn't sure by looking at the string in Register.php (I'm not familiar with all that regex stuff). Because I didn't feel like logging out and trying to register, I went into Registration Management and tried to register the username [Testing]. This is what I got (using the default theme, SMF 1.0 RC1):

Notice: Undefined variable: ID_THEME in .../smf/Sources/Register.php on line 296
Notice: Undefined variable: ID_THEME in .../smf/Sources/Register.php on line 296
Notice: Undefined variable: file in .../smf/Sources/Subs.php on line 150
Notice: Undefined variable: line in .../smf/Sources/Subs.php on line 150

I also got a "blank" Database Error box:

QuoteDatabase Error


File:
Line: 


I thought maybe it just didn't like the brackets, so I signed out and tried it from the registration page, and it worked fine.
Michael Eshom
Christian Metal Fans

Oldiesmann

Michael Eshom
Christian Metal Fans

[Unknown]

 ! Admin registration wasn't always working properly. (Register.php)

-[Unknown]

Oldiesmann

Michael Eshom
Christian Metal Fans

Advertisement: