From 467e5235a96e9adf64f40ead98c25747ab8350e9 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Wed, 4 Jun 2008 01:01:20 +0000 Subject: [PATCH] Update object code; allow embed inside object, and make their URI's embedded. git-svn-id: http://htmlpurifier.org/svnroot@1776 48356398-32a2-884e-a903-53898d9a118a --- demo.custom.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/demo.custom.php b/demo.custom.php index 07fdca2..2215f2f 100644 --- a/demo.custom.php +++ b/demo.custom.php @@ -6,7 +6,7 @@ class HTMLPurifier_AttrTransform_ParamValidator extends HTMLPurifier_AttrTransfo var $uri; function HTMLPurifier_AttrTransform_ParamValidator() { - $this->uri = new HTMLPurifier_AttrDef_URI(); + $this->uri = new HTMLPurifier_AttrDef_URI(true); } function transform($attr, $config, $context) { @@ -64,7 +64,7 @@ $param->attr_transform_post[] = new HTMLPurifier_AttrTransform_ParamValidator(); $object =& $def->addElement( 'object', 'Inline', - 'Optional: param | #PCDATA', + 'Optional: param | Flow | #PCDATA', false, array( 'type*' => 'Enum#application/x-shockwave-flash', @@ -86,7 +86,7 @@ $embed =& $def->addElement( 'type*' => 'Enum#application/x-shockwave-flash', 'width*' => 'Pixels', 'height*' => 'Pixels', - 'src*' => 'URI', + 'src*' => new HTMLPurifier_AttrDef_URI(true), 'flashvars' => 'Text', 'allowscriptaccess' => 'Enum#never', 'enablejsurls' => 'Enum#false', @@ -94,7 +94,7 @@ $embed =& $def->addElement( 'bgcolor' => 'Text', //these will all be ignored by the injector 'wmode' => 'Text', - 'pluginspage' => 'URI', + 'pluginspage' => new HTMLPurifier_AttrDef_URI(true), 'saveembedtags' => 'Text', 'salign' => 'Text', 'scale' => 'Text', -- 2.11.4.GIT