Project

General

Profile

Actions

Defect #9673

closed

Angle brackets within 'pre' blocks are silently replaced by named HTML entities during wiki section-edit

Added by Mischa The Evil over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Urgent
Category:
Wiki
Target version:
-
Start date:
2011-11-28
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

I noticed this issue while working offline (read on my own test-box; also to test new features recently added to the core) on improvements for RedmineReceivingEmails.

What I did:

1. Copied the complete content of RedmineReceivingEmails to a wikipage in a project in my local Redmine instance (source:/trunk@7962)
2. Section-edited "Enabling anonymous users to create issues by email"-section and saved the page

Now, looking at the diff of the new page-version (and of course the actual page content), the angle brackets within the < pre > blocks in the "Reading emails from standard input" and "Forwarding emails from your email server" sections are silently replaced by their named HTML entities substitutions (&lt; & &gt;).

After I found out the above I tried the same with a fresh (again local) copy of RedmineReceivingEmails but instead of section-editing I choose to regularly edit the whole wiki-page and still only make changes in the "Enabling anonymous users to create issues by email"-section.
This resulted in the correct behavior and made it sure to me that this issue is related to / happens only while using the recently introduced wiki section-editing feature.

I took it even one more step further by doing another section-edit (now on "How it works") and this resulted in the same incorrect behavior. That is, it now replaces the earlier inserted ampersands to his named HTML entitity substitution (&amp;). In that way it's consistent.

Although this happens on my local instance of Redmine I'm pretty sure it will happen on (currently updated) redmine.org too whenever I make these section-edits "in production".

Environment:
  • Redmine: source:/trunk@7962
  • Ruby: 1.8.7 [x86_64-linux] (REE 1.8.7-2011.03)
  • RubyGems: 1.3.7
  • Rack: 1.1.2
  • Rails: 2.3.14
  • MySQL: 5.1.41
  • Browser: Mozilla Firefox 7.0.1

Please let me know if more information is required.


Related issues

Related to Redmine - Feature #2222: Single section edit. ClosedJean-Philippe Lang2008-11-21

Actions
Actions

Also available in: Atom PDF