Welcome Guest, Not a member yet? Register   Sign In
codeigniter routed segments incorrectly converting dashes to underscores with nginx
#1

[eluser]jayhung[/eluser]
I have been struggling with this issue for a few days. Been unsuccessful searching codeigniter forums, nginx forums, stackoverflow, as well as the general web. I posted this new question on stackoverflow, but thought perhaps some of you here may have a solution or have come across this in the past:

http://stackoverflow.com/questions/14676...es-with-ng

To summarize, on an nginx install, my uri segments is showing correct parts for my URI, including dashes for my slugs. However, the same uri rsegments (routed segments) shows the slug with all dashes converted to underscores (this is also how it is passed as a param to my controller method).

I've traced this to line 389 of Router.php, in the _parse_route() method, at the call to

Code:
return $this->_set_request(explode('/', $val));

More info in the stackoverflow link, as well as my actual nginx configs.

I am using CodeIgniter 2. The same code has been working fine on Apache installs for multiple deployments.


Messages In This Thread
codeigniter routed segments incorrectly converting dashes to underscores with nginx - by El Forum - 02-03-2013, 11:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB