Check that content is a string

main
Bob Mottram 2023-03-03 10:04:43 +00:00
parent 7866018573
commit 171808f7ee
1 changed files with 2 additions and 0 deletions

View File

@ -4324,6 +4324,8 @@ def harmless_markup(post_json_object: {}) -> None:
if post_json_object['object'].get(map_name):
map_dict = post_json_object['object'][map_name].items()
for lang, content in map_dict:
if not isinstance(content, str):
continue
if dangerous_markup(content, False):
content = remove_html(content)
post_json_object['object'][map_name][lang] = \