cvs: phpweb / cal.php /include layout.inc

From: Date: Wed, 19 Jun 2002 00:46:12 +0000
Subject: cvs: phpweb / cal.php /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-10922@lists.php.net to get a copy of this message
cortesi Tue Jun 18 20:46:12 2002 EDT Modified files: /phpweb cal.php /phpweb/include layout.inc Log: fixing bug 17796: slash problem on calendar Index: phpweb/cal.php diff -u phpweb/cal.php:1.33 phpweb/cal.php:1.34 --- phpweb/cal.php:1.33 Thu May 2 14:09:47 2002 +++ phpweb/cal.php Tue Jun 18 20:46:07 2002 @@ -16,7 +16,7 @@ if ($id) { if ($event = load_event($id)) { - commonHeader("Event: ".htmlentities($event['sdesc'])); + commonHeader("Event: ".stripslashes(htmlentities($event['sdesc']))); display_event($event, 0); $begun++; } @@ -151,7 +151,7 @@ || ($event['start'] == $day)) { echo '<div class="event">', '<a href="',$PHP_SELF,"?id=$event[id]&amp;cm=$cm&amp;cy=$cy",'">', - htmlentities($event['sdesc']), + stripslashes(htmlentities($event['sdesc'])), '</a></div>'; } } Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.90 phpweb/include/layout.inc:1.91 --- phpweb/include/layout.inc:1.90 Mon Jun 17 06:39:24 2002 +++ phpweb/include/layout.inc Tue Jun 18 20:46:09 2002 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.90 2002/06/17 10:39:24 sander Exp $ */ +/* $Id: layout.inc,v 1.91 2002/06/19 00:46:09 cortesi Exp $ */ # spacer() # print a IMG tag for a sized spacer GIF @@ -425,7 +425,7 @@ <?php if ($include_date && ($event['start'] || $event['smonth'])) echo "<b>", date("F j, Y", $sday), "</b>\n"; if ($event['url']) echo '<a href="', htmlentities($event['url']),'">'; - echo "<b>", htmlentities($event['sdesc']), "</b>"; + echo "<b>", stripslashes(htmlentities($event['sdesc'])), "</b>"; if ($event['url']) echo "</a>"; switch ($event['type']) { case 2:

« previous php.mirrors (#10922) next »