Page MenuHomePhabricator

<pre> tag bug(s)? - "Save page" destroys content
Closed, ResolvedPublic

Description

Author: jhannah

Description:
In case these matter:

  • PHP: 5.2.1 (apache2handler)
  • MySQL: 5.0.38-Ubuntu_0ubuntu1-log

Create a page with this content:

Header 1

<pre>
<h1>X</h1>
</pre>

Header 2

<pre>
<h1>X</h1>
</pre>

Now click the [edit] for Header 2. Change the "X" to "Y". Click "Save page".

As you can see, all sorts of interesting and unexpected things happened. Header 2 got slurped inside Header 1 and there's a new Header tag: X with contents "</pre>"...

Kooky, eh? I'm having to [undo] many errant "Save page" operations daily. Large pages with lots of <pre> headers get contorted in all sorts of bizarre ways.

Thanks for your help,

j


Version: 1.10.x
Severity: major
OS: Linux
Platform: PC

Details

Reference
bz10776

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:50 PM
bzimport set Reference to bz10776.
bzimport added a subscriber: Unknown Object (MLST).

This was fixed for 1.11 some time ago.

  • This bug has been marked as a duplicate of bug 10309 ***