Is there any way to allow special characters such as "=" and "-" in a username (like in a regex check or anything)?
EDIT: I ended up jumping into admin.php and changing
Code:
if (ereg("[^a-zA-Z0-9_-]",trim($aid))) {
die("Begone");
}
to
Code:
if (ereg("[^a-zA-Z0-9_=-]",trim($aid))) {
die("Begone");
}
ONE BIG NOTE: The "-" needs to go at the end of the regex expression because it tries to find a range of characters that the "-" sits between. So for example if i used
Code:
if (ereg("[^a-zA-Z0-9_-=]",trim($aid))) {
die("Begone");
}
it would look for anything between "_" and "=" which is impossible.
sting Site Admin
Joined: Jul 24, 2003
Posts: 1985
Location: Apparently ALWAYS Online. . .
Posted:
Fri Jan 27, 2006 10:40 am
I'm sure there is a danger in there somewhere, but I don't see it at the moment. Thanks for posting the 'fix'.
-sting
_________________ Is it paranoia if they are really out to get you?
-------------------------------------------------------
sting usually hangs out at nukehaven.net
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum