Questions tagged [validate-request]
37 questions
1
vote
2 answers
MVC Controller, A model with same equivalent incoming parameter, is invalid
I'm wonder how to ask this question, but somehow i have to...
TL;DR. I had worked on a system, passed to me by someone else, running on someplace, that they came with their wired request and idea. so i said let do the X thing and make it done, but…

Hassan Faghihi
- 1,888
- 1
- 37
- 55
1
vote
0 answers
How to handle 'A potentially dangerous Request.Form value was detected from the client' error without turning ValidatePage off
I have a wysiwyg editor on my page and its content contains '<' character. Is there a way to handle this error without turning off validateRequest
I am using a custom framework and my page is a webcontrol (.ascx) in it, so I can't turn off…

dvdmn
- 6,456
- 7
- 44
- 52
1
vote
0 answers
Advice on potentially dangerous Request.Form with Umlauts
My company security policy dictates that I cannot turn off the ValidateRequest attribute for our forms website.
I am getting error reports from the site for potentially dangerous Request.Form input.
I can see from all of the errors, that the danger…

Stuart
- 1,544
- 5
- 29
- 45
1
vote
1 answer
html select value 0 is in php validation always empty
I try to post the selected value and check if the variable is empty.
html:
1
vote
1 answer
Show script depending on innerwidth - without "potentially dangerous request.form"
What I want:
I have a situation where I want to show affiliate ads on my website. These are basically javascripts, with content within them. As my site has a responsive design, I want to load different ads depending on the jQuery innerwidth…

Lars Holdgaard
- 9,496
- 26
- 102
- 182
0
votes
1 answer
ValidateRequest - getting error and display on current page
I have an asp.net application and I've realized, that if I set ValidateRequest to false, always a standard error page is displayed.
I've heard, that you can display a custom error page.
But I need to know if I can catch the error and display it…

Keith L.
- 2,084
- 11
- 41
- 64
0
votes
2 answers
Textbox validation forcing error
Vista, visual web developer express 2010, c#, asp.net, webforms. Running program with ctrl-F5. I'm the only person who will ever run this program ... and it will only ever run on my laptop using a local database.
Writing app to download web pages,…

elbillaf
- 1,952
- 10
- 37
- 73
0
votes
0 answers
Is A Potentially Dangerous Request.form Value Was Detected From The Client only on MVC?
I got error
A Potentially Dangerous Request.form Value Was Detected From The Client
when running the .NET MVC project, but if running on the Webform project the error doesn't appear. because I don't find validateRequest configuration set true…

Want to know
- 1
- 2
0
votes
1 answer
validate a url and then split it into the url and the domain name
Let say I have got a url
http://ex.com/blah?balchs
What I wanna do is to validate if the url is valid. The url
ex.com and /blah?balchs
How can I do this?
Also if I wanna validate if the domain exists and is up and running how do I do that?
Also…

Vish
- 4,508
- 10
- 42
- 74
0
votes
3 answers
Problem with Request Validation
In order to display some special text (like html data) I put validaterequest="false" in my aspx page. But unfortunatly I'm not even get that text to display.
So how can i display that (Html enabled) content?

jestges
- 3,686
- 24
- 59
- 95
0
votes
0 answers
Potentially dangerous request is loading the page
I hosted an application in ASP.NET 4.0 webforms.
When I am browsing hostname/DressDetail.aspx?&category=1&code=76
It is showing an error message like:
A potentially dangerous Request.QueryString value was detected from the…

Hrishikesh T T
- 339
- 2
- 11
0
votes
1 answer
Validate empty request
I am developing a SpringBoot Application. For a POST end-point, there is NO request body to be passed. My service is working fine. But its also working when I pass some values in the body of the request. How can I validate and return a BAD REQUEST…

deejo
- 431
- 2
- 7
- 13
0
votes
0 answers
Issue After URL Routing using URL Rewrite 2 Module of IIS
ASP.NET has detected data in the request that is potentially dangerous because it might include HTML markup or script.
The above error is being thrown after I use URL Rewrite 2 Module of IIS for url routing. I know the cause of the error that one of…

Praveen
- 263
- 2
- 10
0
votes
2 answers
Validating user input in java
Hi I am encountering a problem with a uni project I am working on. I am trying to validate the input so that the BookID that is entered when attempting to loan the book, is only valid if it exists in the array named 'BookList'. At the minute I have…

Liam
- 429
- 1
- 13
- 33
0
votes
1 answer
validateRequest=true and requestValidationMode="4.0" lets html through
I have a Web Forms website on IIS7 and .NET 4.5.1 and I want the http requests to be validated using Microsoft's Request validation. The web.config default values for validateRequest and requestValidationMode are supposed to be "true" and "4.0"…

Syriuk
- 11
- 1
- 4