mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 15:28:37 -05:00
Make ip_and_slash16 resilient to bizarre extra spaces.
This commit is contained in:
@@ -1127,6 +1127,7 @@ def ip_and_slash16(req):
|
||||
|
||||
if ip is None:
|
||||
raise ValueError("request.ip is None")
|
||||
ip = ip.strip()
|
||||
|
||||
m = r_subnet.match(ip)
|
||||
if m is None:
|
||||
|
||||
Reference in New Issue
Block a user