forked from rDrama/rDrama
1
0
Fork 0

fix chud exploit

master
Aevann 2023-03-23 18:38:42 +02:00
parent e8c2952e3c
commit e163c2f5d0
1 changed files with 1 additions and 1 deletions

View File

@ -634,7 +634,7 @@ def complies_with_chud(obj):
obj.title_html = torture_ap(obj.title_html, obj.author.username)
obj.body_html = torture_ap(obj.body_html, obj.author.username)
tags = soup.html.body.find_all('p', recursive=False)
tags = soup.html.body.find_all(lambda tag: tag.name == 'p' and not tag.attrs, recursive=False)
for tag in tags:
for text in tag.find_all(text=True, recursive=False):