Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

[WEB-1643] chore: support cyrillic characters in subject #7336

Bavisetti Narayan3224122df083
diff --git a/apps/api/plane/bgtasks/email_notification_task.py b/apps/api/plane/bgtasks/email_notification_task.py
index dcc37796dd..5a601dcb8a 100644
--- a/apps/api/plane/bgtasks/email_notification_task.py
+++ b/apps/api/plane/bgtasks/email_notification_task.py
@@ -21,8 +21,8 @@ from plane.utils.exception_logger import log_exception
def remove_unwanted_characters(input_text):
- # Keep only alphanumeric characters, spaces, and dashes.
- processed_text = re.sub(r"[^a-zA-Z0-9 \-]", "", input_text)
+ # Remove only control characters and potentially problematic characters for email subjects
+ processed_text = re.sub(r"[\x00-\x1F\x7F-\x9F]", "", input_text)
return processed_text