Closed Hippopotas closed 3 years ago
Found the bug. The regex we use to check src
attribs only checked for tags using "", so tags using '' had the ''
included as part of the URI we validated. Hence, it would see a link start with 'https://
, which it doesn't have a case for.
I fixed that in https://github.com/smogon/pokemon-showdown/commit/e9f906e5f0b530e44dd7f5fe98bcd907268efb3e
It looks like with #8425 , img src now breaks on single quotes. Is this intended behavior?
These work:
This does not work:
and returns error
Image URLs must begin with 'https://' or 'data:'; 'http://' cannot be used.