From 1d03878bbeeb7399bcdde29fbdecb46d56935cc7 Mon Sep 17 00:00:00 2001 From: azammitdcarf Date: Wed, 29 Jul 2009 00:45:26 +0000 Subject: [PATCH] Added strip tags to stop errors within dropdown boxes (eg remove
tags) --- functions/functions.xhtml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/functions.xhtml.php b/functions/functions.xhtml.php index b761fe00..383338b0 100644 --- a/functions/functions.xhtml.php +++ b/functions/functions.xhtml.php @@ -176,7 +176,7 @@ function display_chooser($elements, $selectid, $var, $useblank = true, $pass = f else if (strcmp($selected[1],$e[$selected[0]]) == 0) print "selected='selected'"; - print ">".$e['description'].""; + print ">".strip_tags($e['description']).""; } print ""; if ($indiv) print "";