Welcome Guest, Not a member yet? Register   Sign In
Some characters such as { } not allowed in URI
#1

[eluser]fry-guy[/eluser]
Hello,

I am trying to get the following code
Code:
{0FC852D2-C407-4668-9126-01148B37A0B8}
from the URL
Code:
which translate to {0FC852D2-C407-4668-9126-01148B37A0B8}
and I get the Characters not permitted error message.

I have added {} in the permitted characters config file but it still does not work. Is this a bug or am I missing something.
Code:
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_-{}';
Any help will be much appreciated.

Thanks
#2

[eluser]meridimus[/eluser]
You could just replace the characters before submission?

Maybe you have to escape the characters or use the character/url codes?
#3

[eluser]fry-guy[/eluser]
[quote author="meridimus" date="1191945051"]You could just replace the characters before submission?

Maybe you have to escape the characters or use the character/url codes?[/quote]

Unfortunately I do not have any control over the characters, the are sent by a third party.
#4

[eluser]noland[/eluser]
why don't you try to translate that using another php page made by you, the third party and your CI application?

I think that this is named "a proxy page"

hope this helps
#5

[eluser]danoph[/eluser]
I used the method described above, using a regular PHP 'proxy page' which takes the bad stuff that CI doesn't like out of the URL. Then the proxy page hands the URL over to CI. I used this while developing a facebook application using their API




Theme © iAndrew 2016 - Forum software by © MyBB