I have a bunch of images containing ampersands in their names. My site is built on Asp.net MVC3.
When I try to view an image using the URLs below my links and errors.
Example URL:
- www.somesite.com/myimages/an-%26-image.jpg
- www.somesite.com/myimages/an-&-image.jpg
Error: A potentially dangerous Request.Path value was found at the client (&).
Is there a problem around this problem? I really donβt want to disable validation or return to the request ValidationMode = "2.0", as I saw, as these are only problems with some images.
All images are in one folder (myimages), is it possible to stop scanning in a specific folder?
Dave source share