Guo Xiang Tan 6ecf37c482 Improve URL validation to check for a valid host.
Parsing a URL with `URI` is not sufficient as the following cases
are considered valid:

URI.parse("http://https://google.com")
=> #<URI::HTTP http://https//google.com>
2017-12-21 13:50:15 +08:00
..
2017-07-28 10:20:09 +09:00
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-08-01 17:57:26 +09:00
2017-08-16 10:38:11 -04:00
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-03-22 14:26:53 +08:00
2016-08-15 17:59:36 +10:00
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-07-28 10:20:09 +09:00
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2016-12-12 17:29:54 +08:00
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-10-06 11:13:01 +08:00
2017-12-05 21:03:20 +05:30
2016-12-22 16:46:53 +11:00
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2016-11-24 10:13:03 +08:00
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-09-07 15:15:29 +02:00
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-08-29 10:48:22 -04:00
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-07-28 10:20:09 +09:00
2017-12-13 15:47:42 -05:00
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-03-22 14:26:53 +08:00
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-08-16 10:38:11 -04:00
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-05 21:03:20 +05:30
2017-12-11 13:48:11 +05:30