Skip to content

Commit 08b6b0f

Browse files
author
ST47
committed
Strip all whitespace (sometimes I accidentally get a tab in there, which the tool doesn't recognize)
1 parent c66df39 commit 08b6b0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public_html/gateway.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def format_page(form):
122122
# remove spaces, the zero-width space and left-to-right mark
123123
if six.PY2:
124124
ip = ip.decode('utf-8')
125-
ip = ip.strip(u' \u200b\u200e')
125+
ip = ip.strip().strip(u' \u200b\u200e')
126126

127127
result = {}
128128
error = False

0 commit comments

Comments
 (0)