URI has disallowed characters?

#1
[eluser]chefnelone[/eluser]
Hello
I need the url to accept disallowed characters like: é, ñ.

I've got it working by changing in system/library/URI.php the line 192
from:
Code:
if ( ! preg_match("|^[".str_replace(array('\\-', '\-'), '-', preg_quote($this->config->item('permitted_uri_chars'), '-'))."]+$|i", $str));
to:
Code:
if ( ! preg_match("|^[".str_replace(array('\\-', '\-'), '-', preg_quote($this->config->item('permitted_uri_chars'), '-'))."]+$|i", rawurlencode($str)));
Just wrapped $str in the rawurlencode() function.
It does work but...
Is this a good fix?
Is there any other way to do it without writting the core?


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.