From ab4023fff62c0c5dfed24974054b5a9e5e757eaf Mon Sep 17 00:00:00 2001 From: Martin Hujer Date: Fri, 24 Oct 2014 10:10:01 +0200 Subject: [PATCH] Update Zend_Validate_Hostname TLDs list to 2014102301 version --- library/Zend/Validate/Hostname.php | 99 +++++++++++++++++++++++++++++- 1 file changed, 98 insertions(+), 1 deletion(-) diff --git a/library/Zend/Validate/Hostname.php b/library/Zend/Validate/Hostname.php index 80c0689f74..582dff2373 100644 --- a/library/Zend/Validate/Hostname.php +++ b/library/Zend/Validate/Hostname.php @@ -110,13 +110,14 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract /** * Array of valid top-level-domains * - * Version 2014071001, Last Updated Fri Jul 11 07:07:01 2014 UTC + * Version 2014102301, Last Updated Fri Oct 24 07:07:01 2014 UTC * * @see http://data.iana.org/TLD/tlds-alpha-by-domain.txt List of all TLDs by domain * @see http://www.iana.org/domains/root/db/ Official list of supported TLDs * @var array */ protected $_validTlds = array( + 'abogado', 'ac', 'academy', 'accountants', @@ -131,6 +132,8 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'ai', 'airforce', 'al', + 'allfinanz', + 'alsace', 'am', 'an', 'ao', @@ -145,6 +148,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'at', 'attorney', 'au', + 'auction', 'audio', 'autos', 'aw', @@ -152,6 +156,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'axa', 'az', 'ba', + 'band', 'bar', 'bargains', 'bayern', @@ -176,14 +181,18 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'bm', 'bmw', 'bn', + 'bnpparibas', 'bo', + 'boo', 'boutique', 'br', 'brussels', 'bs', 'bt', + 'budapest', 'build', 'builders', + 'business', 'buzz', 'bv', 'bw', @@ -192,15 +201,18 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'bzh', 'ca', 'cab', + 'cal', 'camera', 'camp', 'cancerresearch', 'capetown', 'capital', + 'caravan', 'cards', 'care', 'career', 'careers', + 'casa', 'cash', 'cat', 'catering', @@ -208,11 +220,14 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'cd', 'center', 'ceo', + 'cern', 'cf', 'cg', 'ch', + 'channel', 'cheap', 'christmas', + 'chrome', 'church', 'ci', 'citic', @@ -221,6 +236,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'cl', 'claims', 'cleaning', + 'click', 'clinic', 'clothing', 'club', @@ -246,6 +262,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'cr', 'credit', 'creditcard', + 'crs', 'cruises', 'cu', 'cuisinella', @@ -253,9 +270,12 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'cw', 'cx', 'cy', + 'cymru', 'cz', + 'dad', 'dance', 'dating', + 'day', 'de', 'deals', 'degree', @@ -264,6 +284,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'dentist', 'desi', 'diamonds', + 'diet', 'digital', 'direct', 'directory', @@ -275,19 +296,23 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'do', 'domains', 'durban', + 'dvag', 'dz', + 'eat', 'ec', 'edu', 'education', 'ee', 'eg', 'email', + 'emerck', 'engineer', 'engineering', 'enterprises', 'equipment', 'er', 'es', + 'esq', 'estate', 'et', 'eu', @@ -309,11 +334,15 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'fk', 'flights', 'florist', + 'flsmidth', + 'fly', 'fm', 'fo', 'foo', + 'forsale', 'foundation', 'fr', + 'frl', 'frogans', 'fund', 'furniture', @@ -322,21 +351,28 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'gal', 'gallery', 'gb', + 'gbiz', 'gd', 'ge', + 'gent', 'gf', 'gg', 'gh', 'gi', 'gift', + 'gifts', 'gives', 'gl', 'glass', + 'gle', 'global', 'globo', 'gm', + 'gmail', 'gmo', + 'gmx', 'gn', + 'google', 'gop', 'gov', 'gp', @@ -356,6 +392,9 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'gy', 'hamburg', 'haus', + 'healthcare', + 'help', + 'here', 'hiphop', 'hiv', 'hk', @@ -366,18 +405,23 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'homes', 'horse', 'host', + 'hosting', 'house', + 'how', 'hr', 'ht', 'hu', + 'ibm', 'id', 'ie', 'il', 'im', + 'immo', 'immobilien', 'in', 'industries', 'info', + 'ing', 'ink', 'institute', 'insure', @@ -410,16 +454,19 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'koeln', 'kp', 'kr', + 'krd', 'kred', 'kw', 'ky', 'kz', 'la', + 'lacaixa', 'land', 'lawyer', 'lb', 'lc', 'lease', + 'lgbt', 'li', 'life', 'lighting', @@ -433,6 +480,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'lr', 'ls', 'lt', + 'ltda', 'lu', 'luxe', 'luxury', @@ -450,6 +498,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'media', 'meet', 'melbourne', + 'meme', 'menu', 'mg', 'mh', @@ -468,6 +517,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'mortgage', 'moscow', 'motorcycles', + 'mov', 'mp', 'mq', 'mr', @@ -487,9 +537,13 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'nc', 'ne', 'net', + 'network', 'neustar', + 'new', + 'nexus', 'nf', 'ng', + 'ngo', 'nhk', 'ni', 'ninja', @@ -497,14 +551,19 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'no', 'np', 'nr', + 'nra', + 'nrw', 'nu', 'nyc', 'nz', 'okinawa', 'om', + 'ong', 'onl', + 'ooo', 'org', 'organic', + 'otsuka', 'ovh', 'pa', 'paris', @@ -514,6 +573,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'pf', 'pg', 'ph', + 'pharmacy', 'photo', 'photography', 'photos', @@ -521,18 +581,25 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'pics', 'pictures', 'pink', + 'pizza', 'pk', 'pl', 'place', 'plumbing', 'pm', 'pn', + 'pohl', + 'poker', 'post', 'pr', + 'praxi', 'press', 'pro', + 'prod', 'productions', + 'prof', 'properties', + 'property', 'ps', 'pt', 'pub', @@ -542,6 +609,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'qpon', 'quebec', 're', + 'realtor', 'recipes', 'red', 'rehab', @@ -553,21 +621,27 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'report', 'republican', 'rest', + 'restaurant', 'reviews', 'rich', 'rio', + 'rip', 'ro', 'rocks', 'rodeo', 'rs', + 'rsvp', 'ru', 'ruhr', 'rw', 'ryukyu', 'sa', 'saarland', + 'sarl', 'sb', 'sc', + 'sca', + 'scb', 'schmidt', 'schule', 'scot', @@ -594,6 +668,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'solutions', 'soy', 'space', + 'spiegel', 'sr', 'st', 'su', @@ -608,6 +683,8 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'sy', 'systems', 'sz', + 'taipei', + 'tatar', 'tattoo', 'tax', 'tc', @@ -629,6 +706,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'today', 'tokyo', 'tools', + 'top', 'town', 'toys', 'tp', @@ -637,6 +715,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'training', 'travel', 'tt', + 'tui', 'tv', 'tw', 'tz', @@ -645,6 +724,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'uk', 'university', 'uno', + 'uol', 'us', 'uy', 'uz', @@ -669,18 +749,26 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'voto', 'voyage', 'vu', + 'wales', 'wang', 'watch', 'webcam', 'website', 'wed', + 'wedding', 'wf', + 'whoswho', 'wien', 'wiki', + 'williamhill', + 'wme', + 'work', 'works', + 'world', 'ws', 'wtc', 'wtf', + 'xn--1qqw23a', 'xn--3bst00m', 'xn--3ds443g', 'xn--3e0b707e', @@ -732,6 +820,7 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'xn--nqv7fs00ema', 'xn--o3cw4h', 'xn--ogbpf8fl', + 'xn--p1acf', 'xn--p1ai', 'xn--pgbs0dh', 'xn--q9jyb4c', @@ -739,8 +828,12 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'xn--s9brj9c', 'xn--ses554g', 'xn--unup4y', + 'xn--vermgensberater-ctb', + 'xn--vermgensberatung-pwb', + 'xn--vhquv', 'xn--wgbh1c', 'xn--wgbl6a', + 'xn--xhq521b', 'xn--xkc2al3hye2a', 'xn--xkc2dl3a5ee0h', 'xn--yfro4i67o', @@ -749,10 +842,14 @@ class Zend_Validate_Hostname extends Zend_Validate_Abstract 'xxx', 'xyz', 'yachts', + 'yandex', 'ye', + 'yoga', 'yokohama', + 'youtube', 'yt', 'za', + 'zip', 'zm', 'zone', 'zw',