Defect #5129

backslashes in issue description/note should be escaped when quoted

Added by Go MAEDA over 7 years ago. Updated about 6 years ago.

Status:ClosedStart date:2010-03-19
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:0.9.4
Resolution:Fixed Affected version:0.9.3

Description

Assume that a issue has the following description.

quick\nbrown\nfox\\

When you click "quote" link, the expected text in textarea is the following:

> quick\nbrown\nfox\\

But you will see the following text because backslashes are not escaped.

> quick
brown
fox\

issues_controller_backslash_escape_fix.diff Magnifier (760 Bytes) Go MAEDA, 2010-03-19 17:36

Associated revisions

Revision 3616
Added by Jean-Philippe Lang over 7 years ago

Fixes backslashes escaping when quoting issue description/note (#5129).

History

#1 Updated by Jean-Philippe Lang over 7 years ago

  • Status changed from New to Resolved
  • Target version set to 0.9.4
  • Resolution set to Fixed

Fixed in r3616 using Rails' escape_javascript helper.

#2 Updated by Jean-Philippe Lang over 7 years ago

  • Status changed from Resolved to Closed

#3 Updated by Bryce Brim about 6 years ago

SPAM

Also available in: Atom PDF