Opened 14 years ago

Closed 14 years ago

#857 closed defect (fixed)

msDecodeHTMLEntities skip characters

Reported by: jlacroix Owned by: jlacroix
Priority: high Milestone:
Component: MapServer C Library Version: 4.2
Severity: normal Keywords:


The msDecodeHTMLEntities remove some characters of the original string. The string 
"&lt;testgt; string" will become "<est>string". Skipping one character after
each decoding.

Change History (1)

comment:1 Changed 14 years ago by jlacroix

Resolution: fixed
Status: newclosed
There was two problem in this function. 
-When getting the ';', the buffer was incremented twice.
-The copy of the end of the original buffer (to append it to the reeturn buffer)
was made after removing all characters after the ';'.

Marking as FIXED.
Fix is in 4.2 and 4.3
Note: See TracTickets for help on using tickets.