[eluser]Wayne Smallman[/eluser]
A while ago, I wrote an application using version 1.7.3
All has been fine until my host updated PHP to version 5.3.x and since then, I've been getting the following error whenever I attempt to submit a URI:
Quote:An Error Was Encountered
The URI you submitted has disallowed characters.
I've found several support topics and many similar articles offering a solution. But in every instance, the solutions proposed do not match the code I have in URI.php for the corresponding line 191:
Code:
if ( ! preg_match("|^[".str_replace(array('\\-', '\-'), '-', preg_quote($this->config->item('permitted_uri_chars'), '-'))."]+$|i", $str)) { ...
The discrepancies aside, I tried the code suggestions, but they didn't work.
I've attempted wrapping the $str in urlencode() but that didn't work.
I've tried both solutions with a combination of changes to the $config['permitted_uri_chars'] in config.php and they didn't work either.
Does anyone have any idea what's happening?
A rebuild with a newer version just isn't an option at the moment, given my work commitments.