Hi Eric,

Are you using a hash()?  Because that output looks look you are doing a 
URLEncodedFormat().

If you are doing a SHA hash, the result would a bunch of characters like 
"5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8"

If you are URLEncodedFormat() you'd get what you have: 
o%2Ew%2En%2Ee%2Er%40threeravensconsulting%2Ecom

Also, if you hash, the encoded email will have a different hash compared 
to the origina. non-encoded email.  The hash function is not smart at 
all, so you have to URLDecode() an encoded string.

- Rex

On 1/27/2012 1:28 PM, Eric Roberts wrote:
> We are on CF7 (yes I know...we are in the process of upgrading to 9...)
>
> I am having an issue that has just popped up recently.  when i have an
> email address with a "." in the username or multiple "."s like
> ow....@threeravensconsulting.com or o.w.n....@threeravensconsulting.com the
> has function is ignoring the 1st "." and encrypting the rest.  here's the
> code:  signature=hash(digest,"SHA", "UTF-8")
>
> So going with the second addy, here is the result:
> EMAIL=o.w%2En%2Ee%2Er%40threeravensconsulting%2Ecom&...
>
> as you can see, all of the "."s are escaped, with the exception of the
> first one...
>
> Odd thing is that this was working fine for the past few months.  We
> haven't done any updates or anything like that.  Any ideas as to why this
> is happening?  I am totally stumped on this one.
>
> If i try to hash an already escaped email addy...that would produce a
> different hash...correct?  Or is the hash function smart enough to
> recognize the escaped character?
>
> Thanks in advance.
>
> Eric
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:349656
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to