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
Bots
by Outdoorking - 04/13/2024 5:08 PM
Can you add html to language files?
by Baldeagle - 04/07/2024 2:41 PM
Do I need to rebuild my database?
by Baldeagle - 04/07/2024 2:58 AM
This is not a bug, but a suggestion
by Baldeagle - 04/05/2024 11:25 PM
Is UBB.threads still going?
by Aaron101 - 04/01/2022 8:18 AM
Who's Online Now
0 members (), 898 guests, and 155 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 20230217)