Closed davidrans closed 2 years ago
Done!
Closes #311
Anything I can do to help this get merged?
Let me know if you need anything else from me
Just a case of waiting :p - I don't think Edward will ask for any other changes.
What's with all the (string) casts?
It's been a few weeks, but I think the issue was that pre-8.1 these functions did implicit string casts, and now they require a value of type string
to be passed.
Any updates to this?
Thanks for the great library. 👍
There's another PHP 8.x warning at: https://github.com/ezyang/htmlpurifier/blob/master/library/HTMLPurifier/AttrTransform/TargetBlank.php#L38
Attempt to read property "browsable" on bool
邮件已收到,谢谢!
any news?
There's another PHP 8.x warning at: https://github.com/ezyang/htmlpurifier/blob/master/library/HTMLPurifier/AttrTransform/TargetBlank.php#L38
url->getSchemeObj()
could return false, so this can be fixed with:
- if ($scheme->browsable && !$url->isBenign($config, $context)) {
+ if ($scheme !== false && $scheme->browsable && !$url->isBenign($config, $context)) {
Tested this branch through a standalone build on a few project configurations - have not seen any new errors yet. :) Looking forward to this being merged and 4.15.0 released.
Thanks!
Thank you!
邮件已收到,谢谢!
Most of these were caught by the tests. The last commit fixed an issue the tests didn't catch that just came up using the library.