Page 1 of 1

Site Update Nov. 29, 2012

Posted: November 29th, 2012, 11:06 pm
by Corfman Clan
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.
  • 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. :ugeek:
  • Added achilles points to the GeocachePage.
This update touched a lot of code, especially code dealing with generating the links to other pages on the site and generating cache and cacher names. I tried to be thorough and performed a lot of testing to ensure I didn't break any of them, but there's a chance I made a few mistakes. As always, if you see something wrong with the site, please note where and let me know by replying to this release note.

Re: Site Update Nov. 29, 2012

Posted: November 30th, 2012, 12:41 pm
by rocketsciguy
Nice job making all those underlying changes without breaking stuff! Did some checking through the site, and I did not find any broken links. I think Groundspeak already checks and prohibits malicious or suspect code from being used in cache titles, descriptions, etc., but that's very good practice to do anyway. Thanks for building this great site!

Re: Site Update Nov. 29, 2012

Posted: December 3rd, 2012, 10:37 am
by Corfman Clan
Corfman Clan wrote:Hi, I pushed out another site update tonight. Yes, they've been coming fairly often lately.
I noticed a missed impact today. When a search results in redirecting directly to a cache page or cacher page, the numerical ID is still being used instead of the GC or PR code. This will be corrected in the next site update.

Re: Site Update Nov. 29, 2012

Posted: December 4th, 2012, 12:03 pm
by Corfman Clan
I found another missed impact. When going to a leader board (any of the points or backcountry boards) from a cacher page, that cacher should be highlighted on the board page. Using the cacher's profile code instead of the ID broke the highlighting. This will be corrected in the next site update.