Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 347254 - Bug in StringUtility.htmlDecode
Summary: Bug in StringUtility.htmlDecode
Status: CLOSED DUPLICATE of bug 364545
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Scout (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-26 02:38 EDT by Michael Schaufelberger CLA
Modified: 2021-08-19 11:22 EDT (History)
2 users (show)

See Also:
zimmermann: kepler+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Schaufelberger CLA 2011-05-26 02:38:37 EDT
The method htmlDecode(String) in StringUtility should replace "&" at the very end instead of the beginning.

Example: The current implementation yields
"<a < b>" for htmlDecode("&lt;a &amp;lt; b&gt;"). The correct result would be "<a &lt; b>".
Comment 1 Judith Gull CLA 2013-01-01 06:22:59 EST
This bug was already fixed with commit for bug 364545.  "&amp;"  s replaced at the very end. Added tests.

*** This bug has been marked as a duplicate of bug 364545 ***
Comment 2 Matthias Zimmermann CLA 2013-07-08 17:25:31 EDT
Bug closed, shipped with 3.9.0 (Kepler)