Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
weblover #1
CFLOCATION ERROR
Hi I got this error when running my application.
does anybody know abt this error, am not inserting any carriage returns or any
line fees, pls.help.
here is my error.
=====================
Failed to perform redirection.
ColdFusion was unable to perform the CFLOCATION operation. Location URL cannot
contain (carriage return) CR or (line feed) LF characters
The error occurred in line 47
45 :
46 : <cfif variables.redirect is 1>
47 : <cflocation addtoken="no"
url="thankyou.cfm?surveyflag=#form.surveyflag#&cid =#URLEncodedFormat(Encrypt(get
_cid.cid,application.encryptkey))#" />
48 : </cfif>
49 :
=================
thanks in advance.
weblover Guest
-
CFlocation.
I?m interested to know whether it?s good practice to write long CF coded pages or segment CF code into several different CF pages and use cflocation... -
cflocation and 301 redirects
I am looking for the same solution. When I try: <cfheader statusCode="301" statusText="Moved Permanently"> <cfheader name="Location"... -
CFLOCATION in CFMX
Hopefully someone can answer this easy question. In CF5, I have a redirect using a CFLOCATION like this: <cflocation... -
cflocation
Does anyone know a way to use cflocation to load a page into a specific target within a frameset? I am working with multiple framesets and I am... -
CFLocation and SSL
I am moving someone on a site from a form on an http or https. I post to a page that queries a DB and then redirects based upon the form post. The... -
weblover #2
CFLOCATION ERROR
Hi I got this error when running my application.
does anybody know abt this error, am not inserting any carriage returns or any
line fees, pls.help.
here is my error.
=====================
Failed to perform redirection.
ColdFusion was unable to perform the CFLOCATION operation. Location URL cannot
contain (carriage return) CR or (line feed) LF characters
The error occurred in line 47
45 :
46 : <cfif variables.redirect is 1>
47 : <cflocation addtoken="no"
url="thankyou.cfm?surveyflag=#form.surveyflag#&cid =#URLEncodedFormat(Encrypt(get
_cid.cid,application.encryptkey))#" />
48 : </cfif>
49 :
=================
thanks in advance.
weblover Guest
-
jdeline #3
Re: CFLOCATION ERROR
Does the redirection take place if you remove the &cid=#URLEncodedFormat(Encrypt(get_cid.cid,applica tion.encryptkey))#" /
jdeline Guest
-
theMex #4
Re: CFLOCATION ERROR
WebLover,
If you are using CFMX 7 the CFlocation is handled differently. See this article
[url]http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=46ba02fd&pss=rss_co[/url]
ldfusion_46ba02fd
Hope this helps,
Guillermo
theMex Guest
-
KRIKAT #5
CFLOCATION Error
In our move to 7 from 6.1 a page that has encryption for url variables no
longer functions correctly. With a cflocation redirection we are getting the
following error:
Failed to perform redirection.
ColdFusion was unable to perform the CFLOCATION operation. Location URL cannot
contain (carriage return) CR or (line feed) LF characters
Any ideas out there?
KRIKAT Guest
-
moneybagsxp #6
Re: CFLOCATION Error
I'm interested to see the encrypted form of the URL... the error message says it all, no CR or LF, which you could likely replace, though I don't know the affect on your URL yet until I see it.
moneybagsxp Guest
-
KRIKAT #7
Re: CFLOCATION Error
Here's the URL that gets posted:
[url]http://localhost/se/tsslp_eventupdate.cfm?eventid=%24%221%5B%21%2AP%20 %20%0A&use[/url]
rname=Kowalyk%2C%20Terry&userid=%26%3E%21S%28%29ZL %2A%0A&fromdate=06/19/2005&tod
ate=06/22/2005&actmethod=0&eventrole=0&byempid=&byemployee=
KRIKAT Guest
-
moneybagsxp #8
Re: CFLOCATION Error
Decoded your URL would be:
http://localhost/se/tsslp_eventupdate.cfm?eventid=$"1[!*P &username=Kowalyk,
Terry&userid=&>!S()ZL*&fromdate=06/19/2005&todate=06/22/2005&actmethod=0&eventro
le=0&byempid=&byemployee
Note that a line break (which is a carriage return plus a line feed) is
encoded as %0D%0A
However, I am only seeing Line Feeds (%0A) in the eventid and userid
parameters.
Unique choice of encrypted eventid/userid :) If they are not dependent on the
"%0A", I would issue a Replace() on the URL passed to cflocation.
Possibly try something like the following:
<cflocation url="#Replace( url_to_replace, '%0A', '', 'ALL' )#" addtoken="no">
moneybagsxp Guest



Reply With Quote

