Previous Thread
Next Thread
Print Thread
Hop To
#45985 01/27/2006 2:52 AM
Joined: Dec 2005
Posts: 4
M
stranger
stranger
M Offline
Joined: Dec 2005
Posts: 4
In the function is_reserved() in ubbt.inc.php there is this line:

$rname = preg_quote($rname,"/");

And it seems to me that this makes it impossible to use wildcards in the reserved name list. The documentation of the feature on the control panel reads:


Use (.*?) for wildcard matches. Example:
bob(.*?) matches any name starting with bob.


It seems like the example is wrong, or hard to understand exactly what you're supposed to type to get this to work. After removing the preg_quote line, the reserved name list becomes a list of regular expressions to deny. Otherwise, I don't understand how to use wildcards. Is the existance of the preg_quote line a bug?

#45986 01/29/2006 10:02 PM
Joined: Jun 2006
Posts: 182
A
member
member
A Offline
Joined: Jun 2006
Posts: 182
Seems so.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Version 7.7.5 Images suddenly not displaying
by Stovebolt - 05/04/2024 11:19 AM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
Who's Online Now
1 members (Ruben), 1,184 guests, and 201 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)