Upload a file called "a b+c d+e f+g.jpg" and watch core looks for a file called "a b c d e f g.jpg". Solution is to search using file_scan_directory() the correct file replacing all spaces and plus signs with (\s+|\+)
Upload a file called "a b+c d+e f+g.jpg" and watch core looks for a file called "a b c d e f g.jpg". Solution is to search using file_scan_directory() the correct file replacing all spaces and plus signs with (\s+|\+)
Comments
Comment #1
mikeytown2 commentedPatch fixes error generating image messages when the image exists and image contains plus signs in its name.
Comment #2
mgiffordIs this also an issue in D8? Doesn't seem to be.
Comment #3
mikeytown2 commentedWhat's the relevant function in D8? This is an edge case, to test drop a file with pluses in the public dir and see if you can generate the image style when hitting the URL.
Comment #4
mikeytown2 commentedUpdated patch to incorporate double url encoded urls
Comment #5
mgiffordGreat that the bots like this patch. 11 months ago I was just trying to figure out if this needed to be fixed in D8 before being backported to D7.
Comment #6
mikeytown2 commentedError out if the $image_uri or $derivative_uri is empty. Better handles some odd edge cases.