There is an issue in ProxySubscriber event subscriber with building a redirect URL. The $relative_path is not properly encoded when the URL is being built and this can cause issues when there are special characters included in the relative path (ex. <img src="/sites/default/files/styles/small_xs/public/2019-03/Header-F%2BB_microkontrast_03_web.jpg" alt="Han® F+B" typeof="foaf:Image" title="Han® F+B">). The solution is to URL encode the $relative_path before building the redirect URL.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

uros.ceh created an issue. See original summary.

uros.ceh’s picture

Status: Active » Needs review
StatusFileSize
new874 bytes
geek-merlin’s picture

Can you extend the existing tests to cover this case too?

eelkeblok’s picture

Status: Needs review » Needs work
falco010’s picture

StatusFileSize
new565 bytes

#2 did not apply to 1.1 anymore

Hereby a reroll of #2, which can be applied to 1.2

smustgrave’s picture

Version: 8.x-1.x-dev » 2.0.x-dev
smustgrave’s picture

Version: 2.0.x-dev » 2.1.x-dev
Status: Needs work » Postponed (maintainer needs more info)

Could this be tested on 2.1.x too?

smustgrave’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)

Since there has been no response going to close for now. If still experiencing this issue please reopen

cleverhoods’s picture

Version: 2.1.x-dev » 3.1.x-dev
Status: Closed (outdated) » Patch (to be ported)
StatusFileSize
new607 bytes

Rerolling previous patch for 3.1.x

cleverhoods’s picture

Status: Patch (to be ported) » Reviewed & tested by the community
smustgrave’s picture

Status: Reviewed & tested by the community » Needs work

Patches should be in MRs this was never merged so nothing to port

stephen-cox made their first commit to this issue’s fork.

stephen-cox’s picture

Status: Needs work » Reviewed & tested by the community

Patch #9 fixed this issue for me. Without it images with special characters were redirecting to themselves and so weren't loading.

I've also created a MR which contains the patch with a small whitespace fix.

smustgrave’s picture

Status: Reviewed & tested by the community » Fixed

I'm fine with this change.

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.