diff options
author | Manuel Munz <freifunk@somakoma.de> | 2011-02-12 19:39:54 +0000 |
---|---|---|
committer | Manuel Munz <freifunk@somakoma.de> | 2011-02-12 19:39:54 +0000 |
commit | 489279bb9a4d9984315bc0e0f97a56fea800bbcd (patch) | |
tree | 1322b1b4058c7e6aa0c222161729242608bad4ef /libs/web/htdocs/luci-static/resources | |
parent | 4b0d5f9205de41d772e5f393123ceafed1c92c6c (diff) |
web: Relax hostname validation for length
Diffstat (limited to 'libs/web/htdocs/luci-static/resources')
-rw-r--r-- | libs/web/htdocs/luci-static/resources/cbi.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/web/htdocs/luci-static/resources/cbi.js b/libs/web/htdocs/luci-static/resources/cbi.js index d12d050a8..2bcfb8c3d 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); }, |