Site Update Nov. 29, 2012
Posted: November 29th, 2012, 11:06 pm
Hi, I pushed out another site update tonight. Yes, they've been coming fairly often lately.
This update had some fairly extensive changes. The overall functionality of the site changed very little, however these are some changes that I've been meaning to do for quite awhile and I finally bit the bullet and implemented them.
This update had some fairly extensive changes. The overall functionality of the site changed very little, however these are some changes that I've been meaning to do for quite awhile and I finally bit the bullet and implemented them.
- Set web page id parameter to the GC or user profile code instead of the numerical ID. For example, instead of http://www.lonelycache.com/GeocachePage.aspx?id=87 we'll have http://www.lonelycache.com/GeocachePage.aspx?id=GC57 or instead of http://www.lonelycache.com/GeocacherPage.aspx?id=93710 we'll have http://www.lonelycache.com/GeocacherPage.aspx?id=PRGY9V. Using either the ID or the GC/Profile code works, so if you've set some links up somewhere, they will not break.
- Whenever a Geocache name or a Geocacher name is generated on the website, the name will now be properly html encoded. This is important so that your browser will properly render the name if it includes html tags. For example, presume a Geocache has the name:
<i><b>Boldly<br>Slanted<br>Multiple<br>Line<br>Name</b></i>
Before the update, that cache's name would have been rendered as:
Boldly
Slanted
Multiple
Line
Name
The above isn't so bad, it's a well behaved example. However, a devious person could cause heartache by injecting some malicious java script into a cache name. - For pages that have paging, such as the leader boards, I have changed the pg parameter to be 1 based instead of 0 based. So now to go to page 3, pg=3 (it used to be pg=2). Zero based counting is a geeky programming thing, but the application was totally out of place. I guess I'm just a geek at heart.

- Added achilles points to the GeocachePage.