From 0d262b3a1d8ba50926eb1aa8793eb7be47cc0c1f Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Wed, 11 Jun 2008 01:56:22 +0000 Subject: [PATCH] Add missing bits from previous commit. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/branches/php4@1786 48356398-32a2-884e-a903-53898d9a118a --- NEWS | 7 +++++++ tests/test_files.php | 1 + 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index 846d37f1..4e3e9510 100644 --- a/NEWS +++ b/NEWS @@ -15,9 +15,16 @@ ERRATA HTML Purifier. 2.1.5, unknown release date +! More robust imagecrash protection with height/width CSS with %CSS.MaxImgLength, + and height/width HTML with %HTML.MaxImgLength. . Added HTMLPurifier_UnitConverter and HTMLPurifier_Length for convenient handling of CSS-style lengths. HTMLPurifier_AttrDef_CSS_Length now uses this class. +- Disable percent height/width attributes for img +. API of HTMLPurifier_AttrDef_CSS_Length changed from __construct($disable_negative) + to __construct($min, $max). __construct(true) is equivalent to + __construct('0'). (replace __construct with HTMLPurifier_AttrDef_CSS_Length) +. Added HTMLPurifier_AttrDef_Switch class 2.1.4, released 2008-05-18 ! DefinitionCacheFactory now can register new implementations diff --git a/tests/test_files.php b/tests/test_files.php index 1f976745..463f635f 100644 --- a/tests/test_files.php +++ b/tests/test_files.php @@ -34,6 +34,7 @@ $test_files[] = 'HTMLPurifier/AttrDef/HTML/LinkTypesTest.php'; $test_files[] = 'HTMLPurifier/AttrDef/IntegerTest.php'; $test_files[] = 'HTMLPurifier/AttrDef/LangTest.php'; $test_files[] = 'HTMLPurifier/AttrDef/TextTest.php'; +$test_files[] = 'HTMLPurifier/AttrDef/SwitchTest.php'; $test_files[] = 'HTMLPurifier/AttrDef/URI/Email/SimpleCheckTest.php'; $test_files[] = 'HTMLPurifier/AttrDef/URI/HostTest.php'; $test_files[] = 'HTMLPurifier/AttrDef/URI/IPv4Test.php';