Roman Zeyde
5fbd7553ed
interface: fix check_host_name() pattern matching
...
The existing pattern matching code:
val.find('*.') == 0 and name.find(val[1:]) + len(val[1:]) == len(name)
will return True in the following case:
val = '*.host.com'
name = 'blah.org'
since string.find() will return -1, len(val[1:]) == 9 and len(name) == 8.
2015-07-26 18:11:30 +03:00
..
2015-07-26 18:11:30 +03:00
2015-02-18 17:13:41 +01:00
2015-07-25 12:50:00 +02:00
2015-06-27 12:43:29 +02:00
2015-06-27 12:43:29 +02:00
2015-04-14 15:04:04 +02:00
2015-07-14 16:37:04 +02:00
2015-07-18 11:17:19 +02:00
2015-03-17 21:57:06 +09:00
2015-07-22 15:46:53 +02:00
2015-07-11 18:14:00 +02:00
2015-07-25 12:25:47 +02:00
2015-07-09 09:02:39 +02:00
2015-02-24 19:32:59 +01:00
2015-07-26 18:11:30 +03:00
2015-02-18 17:13:41 +01:00
2014-10-21 19:05:51 +02:00
2015-07-03 13:56:17 +09:00
2015-07-10 19:35:02 +02:00
2014-08-28 15:37:42 +02:00
2014-10-21 19:05:51 +02:00
2014-05-05 17:31:39 +02:00
2015-07-22 15:33:50 +02:00
2015-06-10 12:40:08 +02:00
2015-03-05 07:49:07 +01:00
2014-10-21 19:05:51 +02:00
2015-05-25 13:28:42 +02:00
2015-02-28 19:22:43 +01:00
2015-07-02 09:22:59 +02:00
2015-07-06 00:22:19 +02:00
2015-07-25 12:41:37 +03:00
2015-06-13 16:58:08 +03:00
2015-06-27 15:22:34 +02:00
2015-07-25 12:25:47 +02:00
2015-07-24 14:23:03 +02:00
2015-05-02 16:26:27 +02:00