d-_-b
d-_-b

Reputation: 23171

navigate to file with a plus (+) in the URL

Trying to navigate to an image within a folder that contains a plus (+) symbol. Folder name is /html/images/a+b/image.jpg

It seems to be causing issues, as I believe the browser is substituting a space (or %2B) for the plus sign.

Is there a way I can access that image with the current folder name? I know it is the plus sign that's the problem, because if I change the folder name and remove the plus, /html/images/ab/image.jpg it will load properly.

Upvotes: 1

Views: 741

Answers (1)

larsks
larsks

Reputation: 311606

+ is how you encode a space character in a URL. If you are trying to access a filename that contains a literal +, you'll need to encode it as %2B.

Upvotes: 2

Related Questions