Opened 7 years ago

Closed 7 years ago

#431 closed defect (fixed)

Accented characters in layer legend label cause XML parser error in Legend.php

Reported by: liuar Owned by: liuar
Priority: P2 Milestone: Future
Component: MapGuide Version: 2.0
Severity: Major Keywords:
Cc: Browser: All
External ID: Operating System: All
state: New

Description

This defect is caused the PHP encoding function used in Legend.php

There are two PHP functions to convert characters to HTML entities:

  • htmlentities — Convert all applicable characters to HTML entities
  • htmlspecialchars — Convert special characters to HTML entities

htmlentities function was used in Legend.php which converted the accented characters to HTML entities, and some of the HTML entities are not valid XML characters (legendLabel is stored in XML).

So, It's proper to replace htmlentities with htmlspecialchars, so that accented characters will not be converted.

Change History (1)

comment:1 Changed 7 years ago by liuar

Resolution: fixed
Status: newclosed

Fixed in Changeset [2327] by liuar

Note: See TracTickets for help on using tickets.