diff --git a/files/classes/mod_logs.py b/files/classes/mod_logs.py index 6a6b2bf6b..351bfe284 100644 --- a/files/classes/mod_logs.py +++ b/files/classes/mod_logs.py @@ -92,7 +92,7 @@ class ModAction(Base): if self.target_user: return f'{self.target_user.username}' elif self.target_post: if self.target_post.club: return f'{CC} ONLY' - return f'{self.target_post.title.replace("<","")}' + return f'{self.target_post.title.replace("<","").replace(">","")}' elif self.target_comment_id: return f'comment' @property diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 876eda24a..7907a91cd 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -269,7 +269,7 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False): def filter_emojis_only(title, edit=False): - title = title.replace('<','').replace("\n", "").replace("\r", "").replace("\t", "").strip() + title = title.replace('<','<').replace('>','>').replace("\n", "").replace("\r", "").replace("\t", "").strip() title = bleach.clean(title, tags=[]) diff --git a/files/routes/oauth.py b/files/routes/oauth.py index 7d80c5e61..a88778361 100644 --- a/files/routes/oauth.py +++ b/files/routes/oauth.py @@ -40,7 +40,7 @@ def authorize(v): def request_api_keys(v): new_app = OauthApp( - app_name=request.values.get('name').replace('<',''), + app_name=request.values.get('name').replace('<','').replace('>',''), redirect_uri=request.values.get('redirect_uri'), author_id=v.id, description=request.values.get("description")[:256]