I have a peculiar situation (CFMX).

I have file names that I need to send in the url. I didnt wantt hem to be 
plain, 

so I did <a 
href="loadfile.cfm?rsc=#urlencodedformat(encrypt(filename,session.key))#" ...

On the target page I do a 

<cfset filename = decrypt(urldecode(rsc),session.key)>

Seems fine.. But doesn't work for some cases when the encrypt results in a 
string with special characters.

I wish to use the above mechanism and make sure it always works. Am I missing 
something?

Here is a example where it doesn't work and throws an error while trying to 
decrypt:

<cfset filename = "20080711-230433-2013-SYNAPSE-A6NRTJU">
<cfset session.key = "charlesg bppf"> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:309028
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to