[Devel] r394 - trunk

svn at agendadulibre.org svn at agendadulibre.org
Lun 29 Sep 09:57:13 CEST 2008


Author: thomas
Date: Mon Sep 29 09:57:12 2008
New Revision: 394

Log:

 * lugtextlist.php:

  - On génère maintenant de l'UTF-8.
  - On escape correctement les chaînes contenant des apostrophes.



Modified:
   trunk/lugtextlist.php

Modified: trunk/lugtextlist.php
==============================================================================
--- trunk/lugtextlist.php	(original)
+++ trunk/lugtextlist.php	Mon Sep 29 09:57:12 2008
@@ -26,7 +26,7 @@
 
 calendar_setlocale();
 
-Header("Content-type: text/plain; charset: iso-8859-1");
+Header("Content-type: text/plain; charset: utf-8");
 
 echo "lon\tlat\ttitle\tdescription\ticon\n";
 
@@ -38,7 +38,7 @@
   if ($lug->city == "")
     continue;
 
-  $city = $db->query("select * from cities where name='" . $lug->city . "'");
+  $city = $db->query("select * from cities where name='" . addslashes($lug->city) . "'");
   if (! $city)
     continue;
 


Plus d'informations sur la liste de diffusion Devel