[MGNLSTK-1152] Image description is rendered incorrectly Created: 18/Apr/13 Updated: 30/May/13 Resolved: 29/May/13 |
|
| Status: | Closed |
| Project: | Magnolia Standard Templating Kit (closed) |
| Component/s: | None |
| Affects Version/s: | 1.4 |
| Fix Version/s: | 2.0.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Jan Haderka | Assignee: | Roman Kovařík |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Template: |
|
||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||
| Date of First Response: | |||||||||||||||||
| Description |
|
to reproduce:
This can't be fixed by cmsfn.decode() in the template since the image object there is Asset not ContentMp or Node The problem needs to be resolved in InternalAsset.getDesccription(). |
| Comments |
| Comment by Milan Divilek [ 27/May/13 ] |
|
change:
+/demo-project/img/opener/green-wall-and-window-.description=<p><script>alert("haf")</script><strong>test</strong></p>
assertEquals("<p><script>alert("haf")</script><strong>test</strong></p>", asset.getDescription());
and test will fail. The values that were escaped by FCK must stay escaped. |
| Comment by Roman Kovařík [ 29/May/13 ] |
|
Port to master ( |