NOTE, this seems to be an issue in FF3. Not a problem in IE.


-----Original Message-----
From: Will Swain [mailto:[EMAIL PROTECTED] 
Sent: 17 July 2008 12:20
To: CF-Talk
Subject: Encypting and urlencoding

Strange one. Am I missing something here?

I have a function that returns an encrypted and urlencoded timestamp:

<cffunction name="encryptTS" returntype="string" output="false">
        
                <!--- returns an encrypted timestamp --->
                
                <cfset var encyptedTS = "">
                
                <cfset encryptedTS = URLEncodedFormat(encrypt(now(),
'xxxxxxx'))>
                                
                <cfreturn encryptedTS>
                
</cffunction>

If I do this:

<cfinvoke component="#Request.cfc_root#.utils" method="encryptTS"
returnvariable="encryptedTS">

<cfdump var="#encryptedTS#" />

I get a correctly formed urlencoded string.

If I do this however:

<a href="page.cfm?i=<cfoutput>#encryptedTS#</cfoutput>">a link</a>

I get a string with the urlencoding removed. Is this expected behaviour? Do
I even need to urlencode my encrypted timestamp?


Will Swain





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:309201
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