From d017bdc585ffb8e0da82b403cb6df8763fabde75 Mon Sep 17 00:00:00 2001 From: antisnatchor Date: Sun, 25 Oct 2015 15:06:55 +0100 Subject: [PATCH] is_valid_hostname now accepts also FQDNs with double dash or dot (although technically wrong as per RFC, some registrants allow them). --- core/filters/http.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/core/filters/http.rb b/core/filters/http.rb index 23aece497..0f4e3582d 100644 --- a/core/filters/http.rb +++ b/core/filters/http.rb @@ -14,8 +14,6 @@ module Filters return false if has_non_printable_char?(str) return false if str.length > 255 return false if (str =~ /^[a-zA-Z0-9][a-zA-Z0-9\-\.]*[a-zA-Z0-9]$/).nil? - return false if not (str =~ /\.\./).nil? - return false if not (str =~ /\-\-/).nil? true end