From 489279bb9a4d9984315bc0e0f97a56fea800bbcd Mon Sep 17 00:00:00 2001 From: Manuel Munz Date: Sat, 12 Feb 2011 19:39:54 +0000 Subject: web: Relax hostname validation for length --- libs/web/htdocs/luci-static/resources/cbi.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/web/htdocs/luci-static/resources/cbi.js') diff --git a/libs/web/htdocs/luci-static/resources/cbi.js b/libs/web/htdocs/luci-static/resources/cbi.js index d12d050a8a..2bcfb8c3df 100644 --- a/libs/web/htdocs/luci-static/resources/cbi.js +++ b/libs/web/htdocs/luci-static/resources/cbi.js @@ -141,7 +141,7 @@ var cbi_validators = { }, 'hostname': function(v) - { if ( v.length <= 24 ) + { if ( v.length <= 253 ) return (v.match(/^[a-zA-Z0-9][a-zA-Z0-9\-.]*[a-zA-Z0-9]$/) != null); }, -- cgit v1.2.3