forked from indymedia/epicyon
Check for dubious payloads
parent
553bd86901
commit
4f740a836c
|
@ -227,10 +227,14 @@ def xml2StrToHashtagCategories(baseDir: str, domain: str, xmlStr: str,
|
|||
categoryStr = categoryStr.split('</title>')[0].strip()
|
||||
if not categoryStr:
|
||||
continue
|
||||
if 'CDATA' in categoryStr:
|
||||
continue
|
||||
hashtagListStr = rssItem.split('<description>')[1]
|
||||
hashtagListStr = hashtagListStr.split('</description>')[0].strip()
|
||||
if not hashtagListStr:
|
||||
continue
|
||||
if 'CDATA' in hashtagListStr:
|
||||
continue
|
||||
hashtagList = hashtagListStr.split(' ')
|
||||
if not isBlockedHashtag(baseDir, categoryStr):
|
||||
for hashtag in hashtagList:
|
||||
|
|
Loading…
Reference in New Issue