permitted_uri_chars with slash |
Hello,
adding in url address like Code: encodeURIComponent("Collinsfield street 5/a") I found that ci3 does not find this ulr even after in app application/config/config.php file in line PHP Code: $config['permitted_uri_chars'] = 'a-z 0-9~%.:&_\-+,\.'; I added 2 chars at end of condition. PHP Code: $config['permitted_uri_chars'] = 'a-z 0-9~%.:&_\-+,\.\/'; Which is the correct way? Thanks!
urlencode - is php function
I run from javascript in popup page : Code: function ViewonGoogleMap() { Using encodeURIComponent or encodeURI gives the same error... geocode.php has lines with urlencode in address: PHP Code: <?
For JS if you want to encode backslashes then you should be able to use:
Code: .replace(/\\/g, '%5C') See here: http://locutus.io/php/url/urlencode/ They aren't showing the encoding of backslashes, but it would be easy to see that my little snippet is your solution, right?
Sorry, both cases do not work:
Code: var street_addr= $('#street_addr').val() // Has Value "Collinsfield street 5/a" Using of urlencode function from url you left will give string like Code: Collinsfield+street+5%2Fa But ref is invalid My current configuration : Code: $config['permitted_uri_chars'] = 'a-z 0-9~%.:&_\-+,\.\/'; //Collinsfield street 5/a |
Welcome Guest, Not a member yet? Register Sign In |