Defect #7533

Inline image alt-text fails due to wiki syntax

Added by Ian Epperson over 8 years ago. Updated over 8 years ago.

Status:NewStart date:2011-02-03
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Text formatting
Target version:-
Resolution: Affected version:1.1.0

Description

Using Redmine 1.1.0.stable.4702 (MySQL)

When an image is attached to a bug and the description contains a wiki link and the image is placed inline, the alt-text html code for the image is shown on resulting bug.

to recreate:
  • Create a bug
  • Upload an image to that bug with a #1 somewhere in the description.
  • Edit the bug description to show the image inline: add
    !image.png!
  • View the bug

You will see that the #1 in the issue description is expanded in the alt text and mangles the html:

<img src="/attachments/download/128" 
   title="This is image <a href="/issues/1" class="issue status-6 priority-2 closed created-by-me assigned-to-me"  
      title="Set up HTTPS access (Closed)">#1</a> of the set" 
  alt="This is image <a href="/issues/1" class="issue status-6 priority-2 closed created-by-me assigned-to-me" 
      title="Set up HTTPS access (Closed)">#1</a> of the set" 
/>

screen-capture.png (22.5 KB) Ian Epperson, 2011-02-03 17:19


Related issues

Blocked by Redmine - Feature #6269: RedCloth 4 support New

History

#1 Updated by Etienne Massip over 8 years ago

  • Category set to Text formatting

Looks like it' a RedCloth bug fixed with 4.0.2.

Also available in: Atom PDF