PDA

View Full Version : Encoding colon?



new2extjs
22 Nov 2011, 8:47 AM
How can we encode colon in extjs?
I tried this
eg.


html: '<iframe style="overflow:auto;width:75%;height:80%;" frameborder="0" src="http://www.abc.com/wiki/xyz%3Atest"> </iframe>' (http://www.jarviwiki.fi/wiki/Keskustelu%3Dgege&quot;></iframe>'),

It doesn't work however if I try another other character than colon it works. Can anyone suggest how to resolve this?

mitchellsimoens
22 Nov 2011, 9:57 AM
You can use the javascript search for the colon and replace it.

hendricd
22 Nov 2011, 11:16 AM
@new2extjs --

%3a is the proper encoded value for your colon. But, if abc.com is backed by an IIS server you'll likely see a 'bad request' response from them.

Turns out the colon was an attack vector (all the way through to the NTFS) years ago, so it's actually not supported by $MS much these days.

new2extjs
24 Nov 2011, 6:46 AM
Thanks a lot for the reply.
But I am using Apache server. How should I deal in that case?