URL Encoded URL field being decoded by browser?

2 views
Skip to first unread message

hofar...@houseoffusion.com

unread,
Apr 10, 2015, 2:09:09 PM4/10/15
to ColdFusion Technical Talk

So I have a site that I'm looking to encode a URL for.

I got it to encode and decode correctly... But when I type into my
browser...

http://127.0.0.1/Ubersite/wwwroot/index.cfm?fuseaction=IncomingMessage&Test=37018E9A8E921C801280885E

The browser redirects to
http://127.0.0.1/Ubersite/wwwroot/index.cfm?fuseaction=IncomingMessage&question=Why
am I here?

Which is what the code stands for when decrypted ("&question=Why am I
here?")

How can I stop this behavior and not let the user see the code deconverted?


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

hofar...@houseoffusion.com

unread,
Apr 10, 2015, 2:10:40 PM4/10/15
to ColdFusion Technical Talk

Nevermind. Sent that a bit to fast. :) There was a "cflocation" in there
that I didn't see. :)

On Fri, Apr 10, 2015 at 11:08 AM, Phillip Vector <vec...@mostdeadlygame.com>
wrote:
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360456

hofar...@houseoffusion.com

unread,
Apr 10, 2015, 2:23:47 PM4/10/15
to ColdFusion Technical Talk

URL Encode and decode is not for obscuring URLs from users... it for passing
around URL data when there's spaces an stuff in it... Like I want to
retrieve a pdf name "My PDF File.pdf", so I encode the file name and get
www.mysite.com?myfile=My%20PDF%20File.pdf

It also sound like maybe your program or IIS has a redirect in it... because
going from ?fuseaction=IncomingMessage&Test to
fuseaction=IncomingMessage&question= ... note Test changed to question...
that's more than URL decode. That looks like a purposeful redirect.

What exactly are you trying to do?


Robert Harrison
Full Stack Developer
AIMG
rhar...@aimg.com
Main Office: 704-321-1234  ext.118
Direct Line: 516-302-4345
www.aimg.com


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

hofar...@houseoffusion.com

unread,
Apr 10, 2015, 2:26:43 PM4/10/15
to ColdFusion Technical Talk

It's encrypted before it's urlencoded. :)

But like I said, it was a cflocation I didn't realize was there. False
alarm. :)

On Fri, Apr 10, 2015 at 11:23 AM, Robert Harrison <rhar...@aimg.com>
wrote:
Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:360458
Reply all
Reply to author
Forward
0 new messages