~do-plugins/do-plugins/docklets

« back to all changes in this revision

Viewing changes to WeatherDocklet/src/Sources/WunderWeatherSource.cs

  • Committer: Robert Dyer
  • Date: 2009-10-02 20:15:18 UTC
  • Revision ID: rdyer@narmada-20091002201518-zrb5rrc7lazmhekc
fix bug 440835 - searching does not work properly

Show diffs side-by-side

added added

removed removed

Lines of Context:
222
222
                                                                                 "&rad=1&rad.num=1&rad.spd=25&rad.opa=75&rad.stm=0&rad.type=N0R&rad.smo=1&rad.mrg=0&wxsn=0&svr=1&svr.opa=70&cams=0&sat=0&riv=0&mm=0&hur=0&fire=0&tor=0&ndfd=0&pix=0");
223
223
                }
224
224
                
225
 
                public override IEnumerable<string> SearchLocation (string location)
 
225
                public override IEnumerable<string> SearchLocation (string origLocation)
226
226
                {
227
227
                        XmlDocument xml;
228
 
                        location = HttpUtility.UrlEncode (location);
 
228
                        string location = HttpUtility.UrlEncode (origLocation);
229
229
                        
230
230
                        try {
231
231
                                xml = FetchXml (SearchUrl + location);
265
265
                                else
266
266
                                {
267
267
                                        yield return loc;
268
 
                                        yield return location;
 
268
                                        yield return origLocation;
269
269
                                }
270
270
                        }
271
271