From fb5f30bcd8015207cce08c10dcc9d7d7f323d9dd Mon Sep 17 00:00:00 2001 From: Jason Cleeland Date: Thu, 26 Aug 2004 05:13:52 +0000 Subject: [PATCH] Strips html tags from question text before adding to select box. (Forgot to strip from short questions in last change) git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1141 b72ed6b6-b9f8-46b5-92b4-906544132732 --- admin/conditions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/conditions.php b/admin/conditions.php index 573498d477b..debef043786 100644 --- a/admin/conditions.php +++ b/admin/conditions.php @@ -273,7 +273,7 @@ foreach($theserows as $rows) { if (strlen($rows['question']) > 30) {$shortquestion=$rows['title'].": ".substr(strip_tags($rows['question']), 0, 30).".. ";} - else {$shortquestion=$rows['title'].": ".$rows['question'];} + else {$shortquestion=$rows['title'].": ".strip_tags($rows['question']);} if ($rows['type'] == "A" || $rows['type'] == "B" || $rows['type'] == "C" || $rows['type'] == "E" || $rows['type'] == "F" || $rows['type'] == "H") { $aquery="SELECT * FROM {$dbprefix}answers WHERE qid={$rows['qid']} ORDER BY sortorder, answer";