Welcome Guest, Not a member yet? Register   Sign In
Routing with encoded params
#1

[eluser]xylar[/eluser]
Hi,

I have the following route rule set in my config/routes.php:

Code:
$route["add/url/(:any)"] = "add/url/$1/$2/$3";

This works fine unless the params have encoded values so the following works:

Code:
http://site.com/add/url/true/www.google.co.uk/Google/

but this does not (without spaces):

Code:
http://site.com/add/url/true/http % 3 A % 2 F % 2Fwww.google.co.uk/Google/

It doesn't event seem to get to the controller function the page just says 'Object not found!'. What should I be doing?

Thanks.


Messages In This Thread
Routing with encoded params - by El Forum - 03-03-2011, 03:19 PM
Routing with encoded params - by El Forum - 03-05-2011, 05:26 AM
Routing with encoded params - by El Forum - 03-05-2011, 06:08 AM
Routing with encoded params - by El Forum - 03-05-2011, 07:08 AM
Routing with encoded params - by El Forum - 03-05-2011, 09:09 AM
Routing with encoded params - by El Forum - 03-06-2011, 10:10 AM
Routing with encoded params - by El Forum - 03-06-2011, 01:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB