ColdFusion General :: URL Encoding Issue in KTML

This thread was displayed: 250 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
Craig Sholley
08-03-2006 20:33:12 GMT +2

We're using KTML 4  for a db-driven CMS system.  Excellent product.  We have one issue.  When KTML saves the web page, link URLs are HTML encoded.   This works fine for most links.  However, links to our Sharepoint sites are entered by selecting the address in the browser address bar and when saved, KTML re-encodes causing malformed URLs.  For example:

URL of 

sharepoint.us.army.mil/sites/DXD/Shared%20Documents/Forms/AllItems.aspx?RootFolder=%2fsites%2fDXD%2fShared%20Documents 

gets re-encoded as

sharepoint.us.army.mil/sites/DXD/Shared%20Documents/Forms/AllItems.aspx?RootFolder=%252fsites%252fDXD%252fShared%20Documents

Note the RootFolder=%2fsites section has beome RootFolder=%252fsites etc.

What function is doing the encoding?  We would like to alter it to do a CF HTMLDecode before the encoding.

 

 

Back | Reply | Quote | Top
Dan Popa[InterAKT]Adobe Systems Romania staff
08-10-2006 15:53:08 GMT +2

Search inside the includes/ktm/core/ktml.js file for the ktml.prototype.logic_InsertLink method. The javascript code is somewhat compressed.

You can modify the url variable the way you want just before the var sel=this.edit.selection; line of code. 

Regards,
Dan POPA


Reply | Quote | Top
Craig Sholley
08-15-2006 16:22:01 GMT +2

 I added the line: url=unescape(url);  just before var sel=this.edit.selection;.  This will decode any encoded URLs. 

Reply | Quote | Top
Sign In
Sign In to see your information.
© Adobe Systems Romania. All rights reserved.