summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-10-28 11:01:54 +0000
committerGo MAEDA <maeda@farend.jp>2018-10-28 11:01:54 +0000
commite8243d213dd14c35f7409f3a13278e985c3ade79 (patch)
treef506b6e6f5987436a462695720afa9769618a4a0 /lib
parentfce77eb97b6071551d8c96c5ae65b9aec25ad9cd (diff)
downloadredmine-e8243d213dd14c35f7409f3a13278e985c3ade79.tar.gz
redmine-e8243d213dd14c35f7409f3a13278e985c3ade79.zip
\f or \v character in Textile markup may cause RegexpError exception (#29756).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17603 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r--lib/redmine/wiki_formatting/textile/redcloth3.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/wiki_formatting/textile/redcloth3.rb b/lib/redmine/wiki_formatting/textile/redcloth3.rb
index 2349a0b84..6ffd7c78c 100644
--- a/lib/redmine/wiki_formatting/textile/redcloth3.rb
+++ b/lib/redmine/wiki_formatting/textile/redcloth3.rb
@@ -1034,7 +1034,7 @@ class RedCloth3 < String
def flush_left( text )
indt = 0
if text =~ /^ /
- while text !~ /^ {#{indt}}\S/
+ while text !~ /^ {#{indt}}[^ ]/
indt += 1
end unless text.empty?
if indt.nonzero?