-
-
Notifications
You must be signed in to change notification settings - Fork 317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exception occurred when input data has html code #34
Comments
This is not related to Audit.NET, that's an ASP.NET exception that will be thrown by default whenever you try to access a form value that contains unencoded HTML. You can explicitly avoid the exception. For example adding the attribute |
oh ok, let me try to reproduce it here |
You were right, sorry. I've made a change on the library so the validations will not be triggered by the Audit form values retrieval. Please upgrade to latest version (>= 7.0.2) and let me know if you still have problems. Regards |
Hi @thepirat000
I got an error when the request form data has html code, the Audit.Mvc.AuditAttribute class method private static IDictionary<string, string> ToDictionary(NameValueCollection col) occur an exception "System.Web.HttpRequestValidationException: 'A potentially dangerous Request.Form value was detected from the client (Html="
").'" , would you help to check this issue?
Below image for your reference.
The text was updated successfully, but these errors were encountered: