Browse Source

FIXBUG: Сваливался поиск если есть символ '+'

devel
http 9 years ago
parent
commit
ba05d16982
  1. 1
      searchapp/views.py

1
searchapp/views.py

@ -12,6 +12,7 @@ def replace_without_case(orig, old, new):
def home(request):
s = request.GET.get('s')
s = s.replace('+', '')
if s:
if bool(re.match(ip_addr_regex, s)):

Loading…
Cancel
Save