0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-12-22 08:21:52 +00:00

Compat changes with earlier versions of PHP.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@139 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2006-08-01 01:57:22 +00:00
parent f63e870300
commit d243545142
3 changed files with 2 additions and 6 deletions

View File

@ -63,10 +63,6 @@ hold everything in an associative $info array, if it's set, it's valid, and
we can include. Otherwise zap it, or attempt to figure out what they meant.
<stronf>? A misspelling of <strong>! This feature may be too sugary though.
While we're at it, we can change the Processing Instructions and Java/ASP
Instructions into data blocks, scratch comment blocks, change CharacterData
into Data (although I don't see why we can't do that at the start).
One last thing: the remove foreign elements has to do the element
transformations, from FONT to SPAN, etc.

View File

@ -6,7 +6,7 @@ require_once 'HTMLPurifier/IDAccumulator.php';
class HTMLPurifier_AttrDef_ID extends HTMLPurifier_AttrDef
{
function validate($id, $accumulator) {
function validate($id, &$accumulator) {
$id = @ (string) $id; // sanity check

View File

@ -29,7 +29,7 @@ class HTMLPurifier_Strategy_CompositeTest extends UnitTestCase
// setup the object
$strategies = array($mock_1, $mock_2, $mock_3);
$strategies = array(&$mock_1, &$mock_2, &$mock_3);
$composite = new HTMLPurifier_Strategy_Composite_Test($strategies);
// setup expectations