diff options
author | Go MAEDA <maeda@farend.jp> | 2023-09-21 00:35:13 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-09-21 00:35:13 +0000 |
commit | 949f57f521c1405cdd45bd1ea7f3474782f4a1fc (patch) | |
tree | a2eaef49196634bebb9b2b3825179e10b7943240 /test/unit | |
parent | 3928d82ee101752567d7086824f91d463be90745 (diff) | |
download | redmine-949f57f521c1405cdd45bd1ea7f3474782f4a1fc.tar.gz redmine-949f57f521c1405cdd45bd1ea7f3474782f4a1fc.zip |
Correctly escape issue text in Gantt PNG export for ImageMagick convert (#38728).
Patch by Holger Just.
git-svn-id: https://svn.redmine.org/redmine/trunk@22314 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit')
-rw-r--r-- | test/unit/lib/redmine/helpers/gantt_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/helpers/gantt_test.rb b/test/unit/lib/redmine/helpers/gantt_test.rb index 0b97a7f20..b494ecb19 100644 --- a/test/unit/lib/redmine/helpers/gantt_test.rb +++ b/test/unit/lib/redmine/helpers/gantt_test.rb @@ -574,4 +574,9 @@ class Redmine::Helpers::GanttHelperTest < Redmine::HelperTest assert_equal versions.sort, Redmine::Helpers::Gantt.sort_versions!(versions.dup) end + + def test_magick_text + create_gantt + assert_equal "'foo\\'bar\\\\baz'", @gantt.send(:magick_text, "foo'bar\\baz") + end end |