forked from MarseyWorld/MarseyWorld
fix issue with code blocks
parent
d9844231c7
commit
cba02b9e4b
|
@ -335,6 +335,7 @@ def sanitize(sanitized, edit=False):
|
|||
|
||||
if bans: abort(403, description=f"Remove the banned domains {bans} and try again!")
|
||||
|
||||
if '<pre>' not in sanitized:
|
||||
sanitized = sanitized.replace('\n','')
|
||||
|
||||
if len(sanitized) > 5000:
|
||||
|
|
Loading…
Reference in New Issue