From ee2db55f73eaa2639fa9aa35a469eebd52aa7e5a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=E7i?= Date: Thu, 7 May 2009 17:24:28 +0000 Subject: Move validation of dyndns username to the only place it uses it, the GUI page. There it makes sense. While there add ':' character to allow NO-ip subaccounts. --- etc/inc/util.inc | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'etc') diff --git a/etc/inc/util.inc b/etc/inc/util.inc index b129824..8968428 100644 --- a/etc/inc/util.inc +++ b/etc/inc/util.inc @@ -213,17 +213,6 @@ function is_domain($domain) { return false; } -/* returns true if $uname is a valid DynDNS username */ -function is_dyndns_username($uname) { - if (!is_string($uname)) - return false; - - if (preg_match("/[^a-z0-9\-.@_]/i", $uname)) - return false; - else - return true; -} - /* returns true if $macaddr is a valid MAC address */ function is_macaddr($macaddr) { if (!is_string($macaddr)) -- cgit v1.1