From 05c36611b39e5e9b9c3095ec5ab53a52b5d7457a Mon Sep 17 00:00:00 2001
From: Mohammed Ahmed Ghanam <midoghanam@hotmail.com>
Date: Thu, 30 Jul 2026 11:05:41 +0300
Subject: [PATCH] Fixed CVE-2021-42574 -- Removed bidirectional Unicode control
 characters from RTL locale format files.

---
 django/conf/locale/ar/formats.py  | 2 +-
 django/conf/locale/ckb/formats.py | 2 +-
 django/conf/locale/fa/formats.py  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/django/conf/locale/ar/formats.py b/django/conf/locale/ar/formats.py
index 8008ce6ec4..697b07cdf5 100644
--- a/django/conf/locale/ar/formats.py
+++ b/django/conf/locale/ar/formats.py
@@ -7,7 +7,7 @@ TIME_FORMAT = "g:i A"
 # DATETIME_FORMAT =
 YEAR_MONTH_FORMAT = "F Y"
 MONTH_DAY_FORMAT = "j F"
-SHORT_DATE_FORMAT = "dΓÇÅ/mΓÇÅ/Y"
+SHORT_DATE_FORMAT = "d/m/Y"
 # SHORT_DATETIME_FORMAT =
 # FIRST_DAY_OF_WEEK =
 
diff --git a/django/conf/locale/ckb/formats.py b/django/conf/locale/ckb/formats.py
index 162c840d33..bad14e900b 100644
--- a/django/conf/locale/ckb/formats.py
+++ b/django/conf/locale/ckb/formats.py
@@ -8,7 +8,7 @@ DATETIME_FORMAT = "j F Y╪î ┌⌐╪º╪¬┌ÿ┘à█Ä╪▒ G:i"
 YEAR_MONTH_FORMAT = "F Y"
 MONTH_DAY_FORMAT = "j F"
 SHORT_DATE_FORMAT = "Y/n/j"
-SHORT_DATETIME_FORMAT = "Y/n/j╪îΓÇÅ G:i"
+SHORT_DATETIME_FORMAT = "Y/n/j╪î G:i"
 FIRST_DAY_OF_WEEK = 6
 
 # The *_INPUT_FORMATS strings use the Python strftime format syntax,
diff --git a/django/conf/locale/fa/formats.py b/django/conf/locale/fa/formats.py
index e7019bc7a6..0a5cb1915e 100644
--- a/django/conf/locale/fa/formats.py
+++ b/django/conf/locale/fa/formats.py
@@ -8,7 +8,7 @@ DATETIME_FORMAT = "j F Y╪î ╪│╪º╪╣╪¬ G:i"
 YEAR_MONTH_FORMAT = "F Y"
 MONTH_DAY_FORMAT = "j F"
 SHORT_DATE_FORMAT = "Y/n/j"
-SHORT_DATETIME_FORMAT = "Y/n/j╪îΓÇÅ G:i"
+SHORT_DATETIME_FORMAT = "Y/n/j╪î G:i"
 FIRST_DAY_OF_WEEK = 6
 
 # The *_INPUT_FORMATS strings use the Python strftime format syntax,
-- 
2.55.0.windows.2

