From 710820cbe9ebd0bb6453bec70cd5e629a8fbe674 Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Thu, 2 Aug 2007 01:48:43 +0000 Subject: [PATCH] [2.1.0] Repair minor PHP4 regression due to undefined configuration directive git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1338 48356398-32a2-884e-a903-53898d9a118a --- library/HTMLPurifier/Lexer.php | 10 ++++++++++ library/HTMLPurifier/Lexer/DOMLex.php | 10 ---------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/library/HTMLPurifier/Lexer.php b/library/HTMLPurifier/Lexer.php index 7cfd8003..b1bd1ed0 100644 --- a/library/HTMLPurifier/Lexer.php +++ b/library/HTMLPurifier/Lexer.php @@ -66,6 +66,16 @@ HTMLPurifier_ConfigSchema::define(

'); +HTMLPurifier_ConfigSchema::define( + 'Core', 'AggressivelyFixLt', false, 'bool', ' +This directive enables aggressive pre-filter fixes HTML Purifier can +perform in order to ensure that open angled-brackets do not get killed +during parsing stage. Enabling this will result in two preg_replace_callback +calls and one preg_replace call for every bit of HTML passed through here. +It is not necessary and will have no effect for PHP 4. +This directive has been available since 2.1.0. +'); + /** * Forgivingly lexes HTML (SGML-style) markup into tokens. * diff --git a/library/HTMLPurifier/Lexer/DOMLex.php b/library/HTMLPurifier/Lexer/DOMLex.php index 1816add4..890c8a7e 100644 --- a/library/HTMLPurifier/Lexer/DOMLex.php +++ b/library/HTMLPurifier/Lexer/DOMLex.php @@ -3,16 +3,6 @@ require_once 'HTMLPurifier/Lexer.php'; require_once 'HTMLPurifier/TokenFactory.php'; -HTMLPurifier_ConfigSchema::define( - 'Core', 'AggressivelyFixLt', false, 'bool', ' -This directive enables aggressive pre-filter fixes HTML Purifier can -perform in order to ensure that open angled-brackets do not get killed -during parsing stage. Enabling this will result in two preg_replace_callback -calls and one preg_replace call for every bit of HTML passed through here. -It is not necessary and will have no effect for PHP 4. -This directive has been available since 2.1.0. -'); - /** * Parser that uses PHP 5's DOM extension (part of the core). *