0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-09-20 19:25:19 +00:00
htmlpurifier/library
Tim Düsterhus 1db36fb09d
Fix some PHP 8.2 deprecations (#319)
* Define HTMLPurifier_Lexer::$_entity_parser property

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_URIFilterHarness::$filter property

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_AttrTransform_NameSync::$idDef property

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_AttrTransform_NameSyncTest::$accumulator property

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_AttrValidator_ErrorsTest::$language property

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_ChildDef_List::$whitespace property

This fixes a PHP 8.2 deprecation.

* Do not modify incoming tokens in RemoveSpansWithoutAttributes

Previously the undefined property `->markForDeletion` was added to the incoming
tokens. This causes a deprecation in PHP 8.2. Fix this by storing to-be-deleted
tokens inside SplObjectStorage. In PHP 8 a WeakMap would be preferable, as that
prevents leaks if `handleEnd` is never called for the token.
2022-06-10 16:30:01 -04:00
..
HTMLPurifier Fix some PHP 8.2 deprecations (#319) 2022-06-10 16:30:01 -04:00
HTMLPurifier.auto.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
HTMLPurifier.autoload-legacy.php Issue-256: Fix PHP 7.3 compatibility issues update zend.ze1_compatibility_mode mode (#267) 2020-09-15 20:12:43 -04:00
HTMLPurifier.autoload.php Issue-256: Fix PHP 7.3 compatibility issues update zend.ze1_compatibility_mode mode (#267) 2020-09-15 20:12:43 -04:00
HTMLPurifier.composer.php Make Composer work with PHP 5.2 and earlier. Reported by @voku 2013-12-08 15:51:56 -08:00
HTMLPurifier.func.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
HTMLPurifier.includes.php Release 4.14.0 2021-12-24 20:21:49 -05:00
HTMLPurifier.kses.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
HTMLPurifier.path.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
HTMLPurifier.php Release 4.14.0 2021-12-24 20:21:49 -05:00
HTMLPurifier.safe-includes.php Usage/includes update. 2017-03-06 23:06:56 -08:00