Jump to content

Bug in /track/ page (incorrect truncation)


devbrain

Recommended Posts

At the moment, if I go to the http://www.geocaching.com/track/ page there is incorrect truncation on a number of the "top 10 bugs" list.

 

The HTML string is truncated to a fixed value, and then has "..." appended if need be. What's happening is extended characters like &quote (I hope that came out right) are being truncated mid-way.

 

The end result is something like: "Wyle C&qu... instead of "Wyle C" which would actually fit within the space allocated.

 

Suggested solution ... convert the encoded string (quotes into &quote; for example) into text, then truncate if needed and reconvert the special characters back to their escaped variations.

 

Sorry if this is a duplicate post. I had a quick search through the forum before posting, but didn't really want to spend all day at it.

Link to comment
Guest
This topic is now closed to further replies.
×
×
  • Create New...