1
1
mirror of https://github.com/chubin/cheat.sh.git synced 2024-11-23 10:35:29 +03:00

fvaicon.ico may be anywhere

This commit is contained in:
Igor Chubin 2018-09-23 19:11:16 +00:00
parent 660c55b7b6
commit 7771269f49

View File

@ -160,7 +160,8 @@ def answer(topic=None):
html_needed = is_html_needed(user_agent)
options = parse_args(request.args)
if topic in ['apple-touch-icon-precomposed.png', 'apple-touch-icon.png', 'apple-touch-icon-120x120-precomposed.png']:
if topic in ['apple-touch-icon-precomposed.png', 'apple-touch-icon.png', 'apple-touch-icon-120x120-precomposed.png'] \
or (topic is not None and any(topic.endswith('/'+x) for x in ['favicon.ico'])):
return ''
request_id = request.cookies.get('id')