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()
|
categoryStr = categoryStr.split('</title>')[0].strip()
|
||||||
if not categoryStr:
|
if not categoryStr:
|
||||||
continue
|
continue
|
||||||
|
if 'CDATA' in categoryStr:
|
||||||
|
continue
|
||||||
hashtagListStr = rssItem.split('<description>')[1]
|
hashtagListStr = rssItem.split('<description>')[1]
|
||||||
hashtagListStr = hashtagListStr.split('</description>')[0].strip()
|
hashtagListStr = hashtagListStr.split('</description>')[0].strip()
|
||||||
if not hashtagListStr:
|
if not hashtagListStr:
|
||||||
continue
|
continue
|
||||||
|
if 'CDATA' in hashtagListStr:
|
||||||
|
continue
|
||||||
hashtagList = hashtagListStr.split(' ')
|
hashtagList = hashtagListStr.split(' ')
|
||||||
if not isBlockedHashtag(baseDir, categoryStr):
|
if not isBlockedHashtag(baseDir, categoryStr):
|
||||||
for hashtag in hashtagList:
|
for hashtag in hashtagList:
|
||||||
|
|
Loading…
Reference in New Issue