From 49cb2a4a7cd6afa5f088fc5e18027d18b03f1645 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Thu, 23 Nov 2006 23:59:20 +0000 Subject: [PATCH] [1.3.0] More control of URIs granted # Invalid images are now removed, rather than replaced with a dud Invalid image. Previous behavior can be restored with new directive %Core.RemoveInvalidImg set to false. ! New directives %URI.DisableExternalResources and %URI.DisableResources ! New directive %Attr.DisableURI, which eliminates all hyperlinking - Missing "Available since" documentation added git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@575 48356398-32a2-884e-a903-53898d9a118a --- NEWS | 5 ++ TODO | 54 ++++++++++++------- docs/proposal-new-directives.txt | 4 -- library/HTMLPurifier/AttrDef/URI.php | 45 ++++++++++++---- library/HTMLPurifier/HTMLDefinition.php | 43 +++++++++------ .../Strategy/RemoveForeignElements.php | 26 ++++++++- tests/HTMLPurifier/AttrDef/URITest.php | 14 +++++ .../Strategy/RemoveForeignElementsTest.php | 6 +++ .../Strategy/ValidateAttributesTest.php | 3 ++ tests/HTMLPurifier/Test.php | 18 ++++++- 10 files changed, 168 insertions(+), 50 deletions(-) diff --git a/NEWS b/NEWS index 0758f384..7f05908a 100644 --- a/NEWS +++ b/NEWS @@ -11,6 +11,9 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier 1.3.0, unknown release date (major feature release) +# Invalid images are now removed, rather than replaced with a dud + Invalid image. Previous behavior can be restored + with new directive %Core.RemoveInvalidImg set to false. ! (X)HTML Strict now supported + Transparently handles inline elements in block context (blockquote) ! Added GET method to demo for easier validation, added 50kb max input size @@ -19,6 +22,8 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier ! New directives %HTML.AllowedElements and %HTML.AllowedAttributes to let users narrow the set of allowed tags !
  • and