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
{{ message }}
Repository navigation
Optimization detective can return non-ascii characters in the Link header, breaking some reverse proxies and HTTP standards. #1775
Optimization detective can return non-ascii characters in the Link header, breaking some reverse proxies and HTTP standards.
Steps to reproduce
Example link with Hebrew chars: https://testsite.com/wp-content/uploads/2025/01/חנות-scaled.avif
If this is added to optimization detection, for example via image prioritizer, it will cause the response header of the page to include:
I've created a Draft PR for this issue: #1802
I have separately encoded the filename only instead of the whole URL since the rest is standard uploads path in WordPress.
Activity
AhmarZaidi commentedon Jan 7, 2025
Hey 👋,
I'd like to work on this issue.
westonruter commentedon Jan 7, 2025
Here's the relevant code:
performance/plugins/optimization-detective/class-od-link-collection.php
Lines 247 to 278 in 90be052
westonruter commentedon Jan 13, 2025
@AhmarZaidi How's it going with this?
AhmarZaidi commentedon Jan 14, 2025
Hey @westonruter,
I've created a Draft PR for this issue: #1802
I have separately encoded the filename only instead of the whole URL since the rest is standard uploads path in WordPress.