dash(-) not allowed in hostname

1 reply
BlueClaw
BlueClaw's picture
Joined: 05/21/2010
User offline. Last seen 12 weeks 13 hours ago.

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

BlueClaw
BlueClaw's picture
Joined: 05/21/2010
User offline. Last seen 12 weeks 13 hours ago.

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

Back to top