You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I should have posted more info. So basically this happens when using this library through mewebstudio/Purifier which is an adapter for Laravel. Laravel has a class Illuminate\Support\Number which is used for number formatting and so on.
Although the issue happened while using mewebstudio/Purifier - the exception was thrown here, so that's why I opened the issue here. It seems to me like the library resolves Number attribute validator as the above-mentioned class. Not sure why though. This happens in AttrCollections on line 129 and happens ONLY for Number validator (others work just fine).
Maybe I'm wrong and I should have opened an issue with mewebstudio/Purifier, really not sure :)
Using Laravel 11.36.1 with PHP 8.3,
mews/purifier
3.4.2 and the latest version ofezyang/htmlpurifier
.When validating
Number
custom attributes, I get the following exception when i want to purify this string:<p>Test</p>
This is the exception trace:
Config:
The text was updated successfully, but these errors were encountered: