Welcome Guest, Not a member yet? Register   Sign In
dash not allowed in custom routed uri since 1.7?
#8

[eluser]thenetmonkey[/eluser]
I figured it out.

My permitted_uri_chars was messed up.

my permitted_uri_chars was:
Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-\+';

I changed it to:
Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_+-';

The reason is the the uri->_filter_uri() function does this:
Code:
preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str))

preg_quote escapes all chars that have special regex meaning. I didn't know that, so I was trying to quote the chars myself. I'm not sure how my permitted_uri_chars was working on 163, or why it broke in 170 when a uri had a dash in it, but fixing the permitted_uri_chars string makes everything work now.

Thanks to everyone who helped out on this.


Messages In This Thread
dash not allowed in custom routed uri since 1.7? - by El Forum - 12-01-2008, 05:42 PM
dash not allowed in custom routed uri since 1.7? - by El Forum - 12-02-2008, 10:18 AM
dash not allowed in custom routed uri since 1.7? - by El Forum - 12-02-2008, 12:02 PM
dash not allowed in custom routed uri since 1.7? - by El Forum - 12-02-2008, 01:09 PM
dash not allowed in custom routed uri since 1.7? - by El Forum - 12-02-2008, 01:48 PM
dash not allowed in custom routed uri since 1.7? - by El Forum - 12-02-2008, 02:01 PM
dash not allowed in custom routed uri since 1.7? - by El Forum - 12-02-2008, 02:23 PM
dash not allowed in custom routed uri since 1.7? - by El Forum - 12-02-2008, 03:44 PM



Theme © iAndrew 2016 - Forum software by © MyBB