From: Sascha Peilicke
I have yet to find out why it was added originally.
---
src/webui/app/helpers/application_helper.rb | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/webui/app/helpers/application_helper.rb b/src/webui/app/helpers/application_helper.rb
index f6b7a70..04f374a 100644
--- a/src/webui/app/helpers/application_helper.rb
+++ b/src/webui/app/helpers/application_helper.rb
@@ -389,9 +389,9 @@ module ApplicationHelper
def force_utf8_and_transform_nonprintables(text)
# Unknown input encoding, try really badass conversion
begin
- new_text = Iconv.iconv('US-ASCII//IGNORE//TRANSLIT', 'UTF-8', text + ' ')[0]
+ new_text = Iconv.iconv('US-ASCII//IGNORE//TRANSLIT', 'UTF-8', text)[0]
rescue Iconv::IllegalSequence # Be more badass'ed
- new_text = Iconv.iconv('UTF-8//IGNORE//TRANSLIT', 'UTF-8', text + ' ')[0]
+ new_text = Iconv.iconv('UTF-8//IGNORE//TRANSLIT', 'UTF-8', text)[0]
end
# Ged rid of stuff that shouldn't be part of PCDATA:
new_text.gsub!(/([^a-zA-Z0-9&;<>\/\n \t()])/n) do
--
1.7.7
--
To unsubscribe, e-mail: obs-commits+unsubscribe@opensuse.org
To contact the owner, e-mail: obs-commits+owner@opensuse.org