Welcome Guest, Not a member yet? Register   Sign In
javascript escape(); and CI url's
#1

[eluser]Fabdrol[/eluser]
Hi guys,

I'm busy with a search engine, based on Yahoo!BOSS, but I've got a little trouble submitting javascript-escaped strings to my CI controller.

The escape code:
Code:
var query_str = escape(query);
    // example output: i % 27 m % 20 here (un-escaped: i'm alive)
    // without the spaces of-course, thats for displaying purposes

The error msg:
Code:
An Error Was Encountered
    The URI you submitted has disallowed characters.

What can I do to allow these characters? I suppose the url is valid, since that's where the escape function is for! (isn't it?)

thanks,
Fabian
#2

[eluser]BrianDHall[/eluser]
You might want to see just what URI is being called. Personally I'd use the LiveHTTP Headers plugin for firefox, just cause its the easy way out Smile
#3

[eluser]Fabdrol[/eluser]
I did, and the url is as follows: http://localhost/Klanten/Halal/public_ht...arch/web/i % 27 m % 20 fabdrol
(I added some spaces to make it possible to display here, imagine them gone!)

I think CI doesn't accept the % sign, what to do?

Thanks




Theme © iAndrew 2016 - Forum software by © MyBB