0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-09-20 19:25:19 +00:00
htmlpurifier/library
Arkadiusz Biczewski 996eaf4331
Remove unnecessary reference assigment (#301)
* Remove unnecessary reference assigment

Proposed code is PHP5 and PHP7 compatible. PHP5 interpreted `$e->$type[$attr]` as `$e->{$type[$attr]}`, but the expected behavior based on workaround is consistent with PHP7 interpretation: `($e->$type)[$attr]`. By using curly braces `{$e->$type}[$attr]` there is a forced interpretation order working for both versions.
Details can be found on https://www.php.net/manual/en/migration70.incompatible.php (section "Changes to the handling of indirect variables, properties, and methods")

* Fix syntax

Use correct syntax for indirect variable evaluation order change.
2021-09-07 14:16:55 -04:00
..
HTMLPurifier Remove unnecessary reference assigment (#301) 2021-09-07 14:16:55 -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.13.0 2020-06-28 20:56:53 -04: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.13.0 2020-06-28 20:56:53 -04:00
HTMLPurifier.safe-includes.php Usage/includes update. 2017-03-06 23:06:56 -08:00