Hi Torsten,

Thank you for you quick action, just before NY ;=))

I have NOT yet checked out your change... but 
my own change worked well... 

Will revert this locally, and try yours...

Thanks for the QUICK response...

Happy NEW YEAR...

Regards,
Geoff.

diff --git a/src/Environment/realwx_ctrl.cxx
b/src/Environment/realwx_ctrl.cxx
index d98bcd5..6150092 100644
--- a/src/Environment/realwx_ctrl.cxx
+++ b/src/Environment/realwx_ctrl.cxx
@@ -127,8 +127,13 @@ void LiveMetarProperties::update( double dt )
     }
 }
 
-void LiveMetarProperties::handleMetarData( const std::string & data )
+void LiveMetarProperties::handleMetarData( const std::string &
in_data )
 {
+    std::string data = in_data; // sanatise in coming metar data
+    for (std::string::size_type i = 0; i < data.size(); i++) {
+        if (data[i] < ' ')
+            data[i] = ' ';
+    }
     SG_LOG( SG_ENVIRONMENT, SG_INFO,
"LiveMetarProperties::handleMetarData() received METAR for " <<
getStationId() << ": " << data );
     _timeToLive = DEFAULT_TIME_TO_LIVE_SECONDS;
     setMetar( data );


On Sat, 2011-12-31 at 17:34 +0100, Torsten Dreyer wrote:
> > Hi Geoff,
> >
> > IIRC, I have sanitized the METAR string long ago and stripped the
> > newlines before writing the property.
> > Looks like it has crept back in somehow. I'll see if I can find what
> > happened, not sure if I can make it before the end of the year ;-)
> 
> Using the last few hours of the year, I just pushed a fix to simplify 
> the METAR string. Does this solve your issue?
> 
> Torsten
> 



------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to