Project

General

Profile

Actions

Defect #29756

closed

\f or \v character in Textile markup may cause RegexpError exception

Added by Hide MATSUTANI over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Text formatting
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

When I make a new issue which includes some control codes, Redmine goes internal error but the issue is created.
Then I go back to the previous view and refer the issue, Redmine goes internal error again.

I tested some cases and found that in the NG case, the text starts with 0x20 0x0B.
If it starts with only 0x0B, the problem doesn't occur.

  • NG case
       ADDRESS  +0 +1 +2 +3 +4 +5 +6 +7  +8 +9 +A +B +C +D +E +F  0123456789ABCDEF
    ----------+-------------------------------------------------------------------
      00000000: 20 0B 61 62 63 64 65 31  32 33 34 35 20 -- -- --   .abcde12345    
    
  • OK case
       ADDRESS  +0 +1 +2 +3 +4 +5 +6 +7  +8 +9 +A +B +C +D +E +F  0123456789ABCDEF
    ----------+-------------------------------------------------------------------
      00000000: 0B 61 62 63 64 65 31 32  33 34 35 20 -- -- -- --  .abcde12345     
    

Even if the text contains the control codes, redmine should not goes internal error, I think.

In order to reproduce the defect, please use the attached file.
Open it in the text editor and paste it in the description of the new issue in Redmine.


Files

NG_sample.txt (13 Bytes) NG_sample.txt Hide MATSUTANI, 2018-10-11 08:39
OK_sample.txt (12 Bytes) OK_sample.txt Hide MATSUTANI, 2018-10-11 08:39
fix-29756.diff (1.16 KB) fix-29756.diff Go MAEDA, 2018-10-14 04:26
fix-29756-v2.diff (1.21 KB) fix-29756-v2.diff Go MAEDA, 2018-10-15 17:30

Related issues

Related to Redmine - Defect #32971: New line between list items break a listClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF