-
Notifications
You must be signed in to change notification settings - Fork 213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
3.16: Special character is removed from LCP/ATF causing 404 and not excluding image from LL #6524
Comments
Might be related to #6339? |
We can close 6339 now, As I think it's the same but was behaving differently while this one is in the latest state. |
@piotrbak about the expected behavior here, I see three possibilities:
While I think 1 is ideal, I am not sure it is doable while keeping the safeguarding (TBC by devs when grooming). In which case, can we consider one of the two other options? And which one would be prefered? Thanks |
I'd say this can be edgy, but we shouldn't cause the current behaviour. I'd go directly with the 3rd option. I'll ask for confirmation @DahmaniAdame and @benorfaz |
Definitely not option 2 as it will add the wrong image. Ideally, option 1. But sounds like too much efforts + risk compromising/over complicating safeguarding data for something that won't be that common. The norm is not to use special characters when naming files. Option 3 sounds good to me + reporting that the element had a special character as an error. If we have too many complains, we can reconsider option 1 in the future. |
I suggest we stick to option 1, option 3 is safer but what do we categorise as special characters ? |
If there is an easy and safe way to go with 1, sure let's go there. From what I got, it is mostly about avoiding sanitization and just doing escaping? Discussion is ongoing here. If we go with option 3, special characters would be anything removed by the sanitization function ; I don't think we need to precisely define them, they're embedded in WP core. In any case, to avoid 404 I think we should consider:
|
Created a draft PR here |
Before submitting an issue please check that you’ve completed the following steps:
Describe the bug
beacon script is removing special char from image URL which will cause 404 for lcp and LL exclusion won't work for ATF
To Reproduce
Steps to reproduce the behavior:
Expected behavior
LCP/ATF aren't Lazyloaded and no 404 in console
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Acceptance Criteria (for WP Media team use only)
Clear instructions for developers, to be added before the grooming
The text was updated successfully, but these errors were encountered: