[BUG] RespectSanitizer truncates base64 data inside img-tag

To be completed by the original poster:

CMS Version

4.5.1

Player Type

Windows .NET

Player Version

407

Issue

I confirmed a bug with the RespectSanitizer which is used inside the RemoteDataset Fetcher. I have custom HTML datasets which holds some <img src="data:image/png;base64,…

And it turns out, when I remove the sanitizer (I pacthed the line to just assign $value[1]) it works like before.

I also found this: [Html Sanitizer] Sanitizer corrupt image if src scheme is data · Issue #49040 · symfony/symfony · GitHub

So, I dont know if you can adjust the sanitizer for base64 images or maybe we can get an expert option to trust these data and NOT sanitizing them?

Cc @dan

AH I just saw the comment: [Html Sanitizer] Sanitizer corrupt image if src scheme is data · Issue #49040 · symfony/symfony · GitHub

So it seems a input length issue? Did not tested it. Could you provide a test pathc for me to test?