From a92bb182d91ae98b2a2bc7787d5650050868f1f1 Mon Sep 17 00:00:00 2001
From: Macil Tech
Date: Tue, 2 Apr 2013 17:28:04 +0800
Subject: Fix display issues with RTL control characters in post names,
subjects, and filenames.
---
templates/post_thread.html | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
(limited to 'templates/post_thread.html')
diff --git a/templates/post_thread.html b/templates/post_thread.html
index cf93bed0..d7a62d4f 100644
--- a/templates/post_thread.html
+++ b/templates/post_thread.html
@@ -22,11 +22,11 @@
{% endif %}
{% if config.show_filename and post.filename %}
,
- {% if post.filename|length > config.max_filename_display %}
- {{ post.filename|truncate(config.max_filename_display) }}
- {% else %}
- {{ post.filename }}
- {% endif %}
+ {% if post.filename|length > config.max_filename_display %}
+ {{ post.filename|truncate(config.max_filename_display)|bidi_cleanup }}
+ {% else %}
+ {{ post.filename|bidi_cleanup }}
+ {% endif %}
{% endif %}
)
@@ -50,14 +50,14 @@