forked from MarseyWorld/MarseyWorld
dfsfd
parent
5e7cf61bd4
commit
1619f9a342
|
@ -99,7 +99,7 @@ allowed_styles = ['color', 'background-color', 'font-weight', 'transform', '-web
|
|||
|
||||
def sanitize(sanitized, noimages=False):
|
||||
|
||||
sanitized = sanitized.replace("\ufeff", "").replace("𒐪","")
|
||||
sanitized = sanitized.replace("\ufeff", "").replace("𒐪","").replace("<script>","").replace("</script>","")
|
||||
|
||||
for i in re.finditer('https://i\.imgur\.com/(([^_]*?)\.(jpg|png|jpeg))', sanitized):
|
||||
sanitized = sanitized.replace(i.group(1), i.group(2) + "_d." + i.group(3) + "?maxwidth=9999")
|
||||
|
|
Loading…
Reference in New Issue