diff options
author | Ben Burwell <ben@benburwell.com> | 2019-07-28 20:24:10 -0400 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2019-07-28 20:24:10 -0400 |
commit | b69cb25d9290025a766bc2860acf9accd8455bb4 (patch) | |
tree | 39f05973e304ae12971666abb4c11fff77a1eeab /app.py | |
parent | 5c873999c7a87a5ad9a9bf65616e4e203fdb3e44 (diff) |
HTML encode
Weird bug yo
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -4,6 +4,7 @@ import json import string import random import re +import html from utils import get_drinks_like from collections import defaultdict @@ -149,6 +150,7 @@ def search(): q = request.form.get('q') if not q: return redirect('/') + q = html.escape(q) brewery, beer_name = q.split(' — ') print('SEARCHING: ', q) beer_id, brewery_id = name_list[q].split('-') |