1

Closed

Problem with reading Virtual Earth links from RSS Description Field

description

Reported by Virtual Globetrotting Admin earlier this year:
 
When VE links are in the RSS Description field, they do not get parsed properly. Code incorrectly parses the Link field
 
there’s a bug in VEScreenSaver/RSS/VeRSSReader.cs:
           //Try getting a Virtual Earth URL from the RSS Description
           if (linkStr == null)
           {
               if (rssItem.Description != null)
               {
                   Match match = Regex.Match(rssItem.Link, sLiveSearchMapsUrlRegEx);
                   if (match.Success)
                   {
                       linkStr = FilterLink(match.ToString());
                   }
               }
           }
 
Should be:
           //Try getting a Virtual Earth URL from the RSS Description
           if (linkStr == null)
           {
               if (rssItem.Description != null)
               {
                   Match match = Regex.Match(rssItem.Description, sLiveSearchMapsUrlRegEx);
                   if (match.Success)
                   {
                       linkStr = FilterLink(match.ToString());
                   }
               }
           }
Closed Sep 23, 2008 at 5:08 PM by keithkin
Completed in 1.1 Release

comments