CVS: phpweather/db pw_db_common.php,1.3,1.4
Brought to you by:
iridium
From: Martin G. <gim...@us...> - 2002-03-25 20:38:19
|
Update of /cvsroot/phpweather/phpweather/db In directory usw-pr-cvs1:/tmp/cvs-serv23112/db Modified Files: pw_db_common.php Log Message: Hmm, it seams that there can be garbage in the METAR reports... Index: pw_db_common.php =================================================================== RCS file: /cvsroot/phpweather/phpweather/db/pw_db_common.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -3 -r1.3 -r1.4 --- pw_db_common.php 25 Mar 2002 19:35:55 -0000 1.3 +++ pw_db_common.php 25 Mar 2002 20:38:12 -0000 1.4 @@ -100,9 +100,9 @@ $icao = substr($metar, 0, 4); if ($this->get_metar($icao)) { - $this->update_metar($icao, $metar, $timestamp); + $this->update_metar($icao, addslashes($metar), $timestamp); } else { - $this->insert_metar($icao, $metar, $timestamp); + $this->insert_metar($icao, addslashes($metar), $timestamp); } } /* while (!feof($fp)) */ |