View Single Post
Old 01-01-2013, 07:39 PM   #468
Sergey Dubinets
Junior Member
Sergey Dubinets began at the beginning.
Posts: 6
Karma: 10
Join Date: Dec 2012
Device: Kindle
To DiapDealer about double unescaping.
It is not that innocent as it can appear.
Of course if value doesn't contain any '&' additional unsnapping would not do any harm.
The problem happens when unescaped value contains known entity. For example is title of the article is "Don't double unescape & in metadata".
Escaped string would be "Don't double unescape & in metadata".
If you unescape it twice or unescape original string you would get "Don't double unescape & in metadata" and this is not what original title was.

In short: double unescaping is a bug and it results in "data loss".
Sergey Dubinets is offline   Reply With Quote