Database Security. Database Auditing. Database Caching. Database Masking. Get it nowdash(-) not allowed in hostname
Posted June 17th, 2010 by BlueClaw
in
I have had two issues where GreenSQL will not allow an email address or hostname with a dash in it.
If I have fredflinstone@bedrock-slate.com or
setting backend host
mysql-secure.slate.com
Both are rejected by the application.
I would like to add the "-" to the code .
Thanks
John
G
Comments
I added the "-" to else if
I added the "-" to
else if (!ereg("^[a-zA-Z0-9_\.\ \-]+$", $proxy['proxyname']))
in proxy_add.php
and
else if (!ereg("^[a-zA-Z0-9_i\@\.\-]+$", $user['email']))
in user_add.php