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
Forum Topic Disabled but..........
by FREAK - 04/01/2025 12:05 PM
Embedding photos with HTML problem
by klhansen - 03/30/2025 11:09 PM
Database changes between 7.5.5 and 7.5.8?
by Conrad - 03/24/2025 12:51 PM
Who's Online Now
1 members (Gizmo), 103 guests, and 103 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20250209)