CodeIgniter Forums
Overwrite XSS-Check Failure Page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Overwrite XSS-Check Failure Page (/thread-55918.html)



Overwrite XSS-Check Failure Page - El Forum - 11-16-2012

[eluser]Florian Müller[/eluser]
Hi guys

I found that if the XSS-Key is not passed regularily (this happens sometimes in my application, never reproducible) and the error message "An error was encountered. The Action you have requested is not allowed." shows up.

Is it somehow possible to overwrite this behaviour and, for example, redirect to a specific url, for example this:

Code:
function overwriteXSSError() {
    redirect('myController/error/xss');
}

Is this realized somehow?

Thanks for answer.