]> source.dussan.org Git - redmine.git/commitdiff
Merged r19480 from trunk to 4.1-stable (#32477).
authorGo MAEDA <maeda@farend.jp>
Tue, 4 Feb 2020 04:44:04 +0000 (04:44 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 4 Feb 2020 04:44:04 +0000 (04:44 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19491 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/export/pdf.rb

index e4553e48a9828b142254d3825b5f52d057784485..8b1061da9954ec7e00a27b0cc2e8cea66439c624 100644 (file)
@@ -93,7 +93,7 @@ module Redmine
           </style>'
 
           # Strip {{toc}} tags
-          txt = txt.gsub(/<p>\{\{([<>]?)toc\}\}<\/p>/i, '')
+          txt = txt.gsub(/<p>\{\{((<|&lt;)|(>|&gt;))?toc\}\}<\/p>/i, '')
           writeHTMLCell(w, h, x, y, css_tag + txt, border, ln, fill)
         end