Roundtrip disallowed characters error |
[eluser]freshface[/eluser]
When I have this error Quote:The URI you submitted has disallowed characters. I want to load an other view, but how do i fetch this in my controller?
[eluser]freshface[/eluser]
When somebody enters disallowed characters in the url i want to capture the error instead of showing the default CI error. Edit, extending the permitted characters is not an option.
[eluser]Yash[/eluser]
http://ellislab.com/forums/viewreply/410947/ You can achieve a much neater “upgrade” to this error message without hacking the core files. Simply make a file in your application’s “libraries” directory called MY_URI.php, and fill it with: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); i.e. a direct copy of the appropriate function from the core class, but with your new addition of show_404() too.
|
Welcome Guest, Not a member yet? Register Sign In |