php - Stop CodeIgniter from incorrectly decoding URL-encoded content -


by default, codeigniter blocks %27 (') appearing in urls. have commented out entire $config['permitted_uri_chars'] directive result. however, when parsing part of url method argument contains %27, or other url encoded portion, codeigniter converts plain ?, before can run rawurledcode() on it. how can stop doing this? we're using ci v1.7.x.

here simple code show it:

in "program" controller:

function test($parameter) {     echo $parameter; } 

then load http://example.com/program/test/o%27clock, , get:

o?clock 

i expected o'clock or @ least o%27clock rawurldecode() o'clock.

update: unfortunately, wrong. not being caused codeigniter. rather, presences of suhosin doing substitution.

the problem wasn't codeigniter. suhosin.


Comments

Popular posts from this blog

java - activate/deactivate sonar maven plugin by profile? -

python - TypeError: can only concatenate tuple (not "float") to tuple -

java - What is the difference between String. and String.this. ? -