meyt / linkpreview

Get link preview in python
MIT License
46 stars 9 forks source link

Favicon Bug #23

Closed benrapport closed 10 months ago

benrapport commented 10 months ago
    return tuple(
        map(
            lambda x: tuple(map(int, x.split("x"))),

This code introduced back in October introduces a bug, as many modern favicon sizes are given by the character: ×.

meyt commented 10 months ago

@benrapport Hi, Please provide an example in HTML which fails by this code.

meyt commented 10 months ago

@benrapport Based on W3C docs, the character "×" (U+00D7 × MULTIPLICATION SIGN) is invalid.