Added check for <text> fields that contain markup (an error!)

Merged from STABLE_19
This commit is contained in:
thepurpleblob
2008-02-12 11:57:39 +00:00
parent ad1e3409a2
commit fc22da99e2
+3
View File
@@ -105,6 +105,9 @@ class qformat_xml extends qformat_default {
else $xml = $xml[$index];
}
if ($istext) {
if (!is_string($xml)) {
$this->error( 'Invalid xml file - string expected (use CDATA?)' );
}
$xml = addslashes( trim( $xml ) );
}