Shouldn't the % sign have been encoded before you try decoding it? Russ
> -----Original Message----- > From: Patrick Farabee [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 31, 2007 12:07 PM > To: CF-Talk > Subject: URLDecode quirk in MX > > This may be working to spec, but I've noticed that the URLDecode function > in MX does not perform any checking after a percent sign to ensure that > there is actually something to be decoded. > > For example, most URLDecode functions I've seen or written in > perl/javascript/php/etc do a check to ensure that the two characters > following a percent sign represent a valid hex value before attempting to > decode that encoded character, so something like: > > size=100%|frame=large > > will be decoded "correctly" as: > > size=100%|frame=large > > Whereas in Cold Fusion MX, you get an error message about not being able > to > decode the hex value of "|f" > > Just a warning to anyone who uses this URLDecode, be sure your value > doesn't have any percent signs that haven't been URLEncoded before you > pass it to this function. > > -- > Pat > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Upgrade to Adobe ColdFusion MX7 Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:268241 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

