Objet : devel-adl
Archives de la liste
- From: svn AT agendadulibre.org
- To: devel AT agendadulibre.org
- Subject: [Devel] r354 - trunk
- Date: Sat, 12 Jul 2008 19:07:29 +0200 (CEST)
- List-archive: <http://agendadulibre.org/pipermail/devel>
- List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>
Author: thomas
Date: Sat Jul 12 19:06:35 2008
New Revision: 354
Log:
Ajout d'un appel manquant à $db->quote_smart(), nécessaire pour ne pas
exploser quand le nom d'un LUG contient une apostrophe ou autre
caractère escapé.
Modified:
trunk/showevent.php
Modified: trunk/showevent.php
==============================================================================
--- trunk/showevent.php (original)
+++ trunk/showevent.php Sat Jul 12 19:06:35 2008
@@ -55,7 +55,7 @@
while ($lug = mysql_fetch_object ($lugs))
{
echo "<li><a href=\"" . $lug->url . "\">" . $lug->name . "</a> (";
- $dpts = $db->query ("select distinct department from lugs where name =
'" . $lug->name . "'");
+ $dpts = $db->query ("select distinct department from lugs where name =
" . $db->quote_smart($lug->name));
$i = 1;
while ($dpt = mysql_fetch_object ($dpts))
{
- [Devel] r354 - trunk, svn, 12/07/2008
Archives gérées par MHonArc 2.6.16.