У меня есть несколько изображений, в именах которых есть амперсанды. Мой сайт построен на Asp.net MVC3.
Когда я пытаюсь просмотреть изображение с указанными ниже URL-адресами, мой сайт возвращает ошибку.
Пример URL-адресов:
Возвращена ошибка: A potentially dangerous Request.Path value was detected from the client (&).
Is there away around this issue? I dont really want to turn off validation or revert to requestValidationMode="2.0" as i've seen suggested as this is only an issues with some images.
All the images are in the same folder (myimages), is it possible to stop validation on a particular folder?