summaryrefslogtreecommitdiffstats
path: root/lib/redmine/wiki_formatting
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-05-02 02:30:36 +0000
committerGo MAEDA <maeda@farend.jp>2018-05-02 02:30:36 +0000
commitffd9a007565999e33809fc7f876c90abe18fe2f5 (patch)
tree1fbbb4824221f7bc34254c478cc6f628cbde28d3 /lib/redmine/wiki_formatting
parent32e9ec868d618c0a54ada830d0ec69ef2d54b0a4 (diff)
downloadredmine-ffd9a007565999e33809fc7f876c90abe18fe2f5.tar.gz
redmine-ffd9a007565999e33809fc7f876c90abe18fe2f5.zip
Merged r17322 from trunk to 3.3-stable (#28469).
git-svn-id: http://svn.redmine.org/redmine/branches/3.3-stable@17324 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/wiki_formatting')
-rw-r--r--lib/redmine/wiki_formatting/textile/formatter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting/textile/formatter.rb b/lib/redmine/wiki_formatting/textile/formatter.rb
index a698cad45..4d4e4b240 100644
--- a/lib/redmine/wiki_formatting/textile/formatter.rb
+++ b/lib/redmine/wiki_formatting/textile/formatter.rb
@@ -120,7 +120,7 @@ module Redmine
## replace <pre> content
text.gsub!(/<redpre#(\d+)>/) do
content = @pre_list[$1.to_i]
- if content.match(/<code\s+class="(\w+)">\s?(.+)/m)
+ if content.match(/<code\s+class=["'](\w+)["']>\s?(.+)/m)
language = $1
text = $2
if Redmine::SyntaxHighlighting.language_supported?(language)