plutopluto

git clone https://git.ce9e.org/plutopluto.git

commit
f288197ce0e33fca43b3773152101f5f18f93e9f
parent
8fd5b674d627e9981442f6340ba69157d03d3e3e
Author
Tobias Bengfort <tobias.bengfort@gmx.net>
Date
2014-09-25 17:49
add datetime to HTML attr whitelist

Diffstat

M server.py 2 +-

1 files changed, 1 insertions, 1 deletions


diff --git a/server.py b/server.py

@@ -16,7 +16,7 @@ cache = SimpleCache()
   16    16 
   17    17 
   18    18 def strip_atts(s):
   19    -1 	whitelist = ['href', 'src', 'alt', 'title']
   -1    19 	whitelist = ['href', 'src', 'alt', 'title', 'datetime']
   20    20 	tree = BeautifulSoup(s)
   21    21 
   22    22 	for tag in tree.find_all():