Tuesday, 20 August 2013

How to catch CheckInvalidPathChars() exception

How to catch CheckInvalidPathChars() exception

I get an automatic exception from the CheckInvalidPathChars() method when
I put an invalid character like "<", ">" ... in the url.
The path is checked automatically and I'd like to catch the exception in
order to redirect the user to the 404 error page.
How can I catch that exception?
Relevant info:
I'm using Umbraco 4.9.0
Thanks!

No comments:

Post a Comment