Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter 1.7.3 "disallowed characters" error
#1

[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.
#2

[eluser]dannyded[/eluser]
I'm having same problem here.. Anyone?
#3

[eluser]rwestergren[/eluser]
Can you give us an example of the URI that you're trying to use? Also, are you saying you manually updated the URI.php core with what never versions have for line 191?




Theme © iAndrew 2016 - Forum software by © MyBB