In IIS, there is a CGI variable called HTTPS that is either set to On
of Off. Does this exist on other servers?
Kevin
>>> [EMAIL PROTECTED] 11/14/00 07:48PM >>>
Oh also i know html email programs can be so I put this in a quick txt
file
if anyone cares to go grab it at http://www.oleani.com/code34.txt
I just ran into this myself last night, I needed a quick fix and not
sure
how well thought out this solution was but hey it worls for me...
In the FormURL2Attributes page do two things: put this line: cfparam
name="attributes.sslmode" default="" up near the other attributes that
come
in.
Second at the bottom of that page do this.
<cfif attributes.displaybase>
<cfif attributes.sslmode is "ssl">
<CFSET caller.Base = REReplace(CGI.SCRIPT_NAME, "[^/]+\.cfm.*",
"")>
<CFSET caller.Base=
"https://www.ihardcodedthispartcauseimlazy.com/">
<cfoutput><base href="#caller.Base#"></cfoutput>
<cfelse>
<CFSET caller.Base = REReplace(CGI.SCRIPT_NAME, "[^/]+\.cfm.*",
"")>
<CFSET caller.Base= "http://" & CGI.SERVER_NAME & caller.Base>
<cfoutput><base href="#caller.Base#"></cfoutput>
</cfif>
</cfif>
In your app_globals.cfm page or whereever you are calling the tag do
this:
cfparam name="sslmode" default=""
CF_FORMURL2ATTRIBUTES2 sslmode="#sslmode#"
Then whenever you need to secure a page just click to it like this:
a href="#securefolder#index.cfm?sslmode=ssl&fuseaction=whatever
I didnt get it to work with the search engine friendly URLs which is
why its
got the ?. But I guess its not so important for SE to index secure
pages.
Good luck. again this was my quick and dirty way there probably is a
better
way to do this.
Misty
-----Original Message-----
From: Kevin Miller [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 14, 2000 10:39 AM
To: CF-Talk
Subject: Fusebox: Bug in FormURL2Attributes
The FormURL2Attributes sets a base URL using a hard coded "http://"
header.
This breaks on SSL sites. Anyone else run into this? That section of
the
code isn't particularly critical, so I just commented it out.
Kevin
----------------------------------------------------------------------------
--------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=sts or send
a
message with 'unsubscribe' in the body to
[EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or
send a message with 'unsubscribe' in the body to
[EMAIL PROTECTED]
------------------------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists or send a message
with 'unsubscribe' in the body to [EMAIL PROTECTED]