fix. In icode/bcode/quote, replace <,>

This commit is contained in:
Cyrille L 2023-03-15 11:09:03 +01:00
parent 84e1ad47c4
commit 77ae782037
1 changed files with 6 additions and 0 deletions

View File

@ -261,6 +261,8 @@ def protect_bcodes_quotes(process, post_bottom):
in_bcode = False
if process == "wip":
bcode = '%s\n%s'%(bcode, line)
bcode = bcode.replace('<', '&lt;')
bcode = bcode.replace('>', '&gt;')
b64_bcode = b64('Encode', bcode, 'B64.', '.B64')
line = b64_bcode
@ -274,6 +276,8 @@ def protect_bcodes_quotes(process, post_bottom):
in_quote = False
if process == "wip":
quote = '%s\n%s'%(quote, line)
quote = quote.replace('<', '&lt;')
quote = quote.replace('>', '&gt;')
b64_quote = b64('Encode', quote, 'Q64.', '.Q64')
line = b64_quote
@ -357,6 +361,8 @@ def protect_icodes(post_bottom):
# No more in code if
if c_a == '}' and not c_b == '\\':
in_icode = False
src_code = src_code.replace('<', '&lt;')
src_code = src_code.replace('>', '&gt;')
code = '%s%s%s'%(code, src_code, words_tags[9][3])
b64_code = b64('Encode', code, 'I64.', '.I64')
rep_code = "%s%s%s"%(