Upon checking the lastest release after merging #2433, I noticed
that some subjects with slashes goes through.
This patch fixes that by ignoring subjects which contains slashes.
"::1",
"0.0.0.0 128.0.0.2",
"0.1.2.3 foo/bar",
+ "0.3.4.5 example.org/hello/world",
"0.0.0.0 https",
"0.0.0.0 https..",
]:
is_ip(hostname)
or re.search(static_ip_regex, hostname)
or "." not in hostname
+ or "/" in hostname
or ".." in hostname
or ":" in hostname
):
not re.search(static_ip_regex, split_rule[0])
and ":" not in split_rule[0]
and ".." not in split_rule[0]
+ and "/" not in split_rule[0]
and "." in split_rule[0]
):
# Deny anything that looks like an IP; doesn't container dots or INVALID.