cvs: phpweb /include layout.inc

From: Date: Sat, 20 Oct 2001 00:58:01 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-7111@lists.php.net to get a copy of this message
jimw Fri Oct 19 20:58:01 2001 EDT Modified files: /phpweb/include layout.inc Log: add clean() Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.53 phpweb/include/layout.inc:1.54 --- phpweb/include/layout.inc:1.53 Sat Sep 22 21:04:13 2001 +++ phpweb/include/layout.inc Fri Oct 19 20:58:01 2001 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.53 2001/09/23 01:04:13 jimw Exp $ */ +/* $Id: layout.inc,v 1.54 2001/10/20 00:58:01 jimw Exp $ */ # spacer() # print a IMG tag for a sized spacer GIF @@ -374,6 +374,10 @@ else if(@is_file($feat)) return $feat; else if(@is_file($struct)) return $struct; else return "$string.php"; +} + +function clean($var) { + return htmlspecialchars(get_magic_quotes_gpc() ? stripslashes($var) : $var); } function clean_note($text) {

« previous php.mirrors (#7111) next »