From c686912de57c08937d12bda2fc20f51ec6aff59e Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 18 Jan 2015 22:57:55 +0000 Subject: [PATCH] #shelve should not be called if cell doesn't match attributes regexp (#18883). git-svn-id: http://svn.redmine.org/redmine/trunk@13913 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redcloth3.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redcloth3.rb b/lib/redcloth3.rb index 032e8bd67..0386589f6 100644 --- a/lib/redcloth3.rb +++ b/lib/redcloth3.rb @@ -534,7 +534,7 @@ class RedCloth3 < String ctyp = 'd' ctyp = 'h' if cell =~ /^_/ - catts = '' + catts = nil catts, cell = pba( $1, 'td' ), $2 if cell =~ /^(_?#{S}#{A}#{C}\. ?)(.*)/ catts = shelve( catts ) if catts -- 2.39.5