Objet : devel-adl
Archives de la liste
- From: svn AT agendadulibre.org
- To: devel AT agendadulibre.org
- Subject: [Devel] r272 - trunk
- Date: Sat, 5 May 2007 13:11:52 +0200 (CEST)
- List-archive: <http://lolut.utbm.info/pipermail/devel>
- List-id: Developpement de l'Agenda du Libre <devel.agendadulibre.org>
Author: thomas
Date: Sat May 5 13:11:51 2007
New Revision: 272
Log:
Validation du paramètre tag.
Modified:
trunk/textlist.php
Modified: trunk/textlist.php
==============================================================================
--- trunk/textlist.php (original)
+++ trunk/textlist.php Sat May 5 13:11:51 2007
@@ -7,6 +7,13 @@
$db = new db();
+if (! $_GET['tag'] || !ereg("^[a-z0-9\-]*$", $_GET['tag']))
+{
+ echo "<p><b>Aucun tag sélectionné, ou tag invalide.</b></p>";
+ put_footer();
+ exit;
+}
+
echo "===============================================================\n";
$events = $db->query ("select * from events where tags like '%" .
$_GET['tag'] . "%' order by start_time");
while ($event = mysql_fetch_object($events))
- [Devel] r272 - trunk, svn, 05/05/2007
Archives gérées par MHonArc 2.6.16.