Red Hat Bugzilla – Bug 842369
Characters are not properly escaped in the names of dashboard pages
Last modified: 2015-01-05 20:34:28 EST
Checked in to
BZ-842369: Use the tabLabel instead of the inner html of the element when editing a dashboard tab. The inner html will have special characters already escaped and will display the escaped characters to be edited, instead of the actual label name.
1 file changed:
Description of problem:
Special characters in the names of dashboard pages are not properly escaped, which leads to duplication of ampersands in HTML entities when editing the page names.
Steps to Reproduce:
1. Sign in as root.
2. Go to Dashboard. You should see the default dashboard page titled "Click & Type Page Name".
3. Double click on the page name to edit it. The text now says "Click & Type Page Name", i.e. ampersand is displayed as the corresponding HTML entity.
4. Press enter to save the name without changing it. You can see it says "Click & Type Page Name".
5. Double click on the name to edit it again. It says "Click &amp; Type Page Name". Repeating the last two steps would make the name longer and longer this way.
Probably related to https://bugzilla.redhat.com/show_bug.cgi?id=838973
The issue was that when double clicking to edit the label, the already escaped inner html was being displayed, instead of the non-escaped actual name of the label. This has been fixed in revision 8806.
Verified on 5.2 branch - will be part of ER04/CR01 release.
Verified again at 5.2.2 CR01