v/pol
1
0
mirror of https://github.com/taroved/pol synced 2025-05-21 00:20:22 -07:00

fix mobile

This commit is contained in:
Al Ne 2018-07-06 17:44:43 +03:00
parent 698b712244
commit 0d8ec7a7b5
2 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,9 @@ class Downloader(object):
if attr.startswith('on'):
del bad.attrib[attr]
# make clickable for mobile
bad.attrib['onclick'] = ""
# sanitize forms
if bad.tag == 'form':
bad.attrib['onsubmit'] = "return false"

View File

@ -7,6 +7,7 @@ mysqlclient==1.3.7
w3lib==1.17.0
feedgenerator==1.8
brotli==0.6.0
sqlparse==0.2.4
#sudo apt-get install nodejs npm
#sudo npm install -g less
#sudo ln -s /usr/bin/nodejs /usr/bin/node