ColdFusion 8 adding unwanted text when calling a function.
hi,
i'm trying create ics file calling function coldfusion 8 adding code "
<link rel="shortcut icon" href="/favicon.ico">" on beginning of ics file. can show me to avoid coldfusion 8 adding code?
here's sample code trying.
<cfscript>
stevent = structnew();
stevent.description = "this can come file or other variable";
stevent.subject = "a vcal created vcal udf";
stevent.location = "chicago, il";
stevent.starttime = '#dateformat(now(), 'mmmm dd, yyyy') & " " & timeformat(now(), 'hh:mm tt')#'; //dateobj or timestamp in gmt
stevent.endtime = '#dateformat(now(), 'mmmm dd, yyyy') & " " & timeformat(now(), 'hh:mm tt')#'; // dateobj or timestamp in gmt
stevent.priority = 1;
vcaloutput = ical(stevent);
</cfscript>
<cfcontent type="text/calendar" reset="yes">
<cfheader name="content-disposition" value="inline; filename=newappointment.vcs"><cfoutput>#ical(stevent)#</cfoutput>
this output file getting makes invalid calendar file due code being generated.
<link rel="shortcut icon" href="/favicon.ico">begin:vcalendar
prodid:-//microsoft corporation//outlook 12.0 mimedir//en
version:2.0
method:publish
x-ms-olk-forceinspectoropen:true
begin:vevent
class:public
created:20100415t105337z
description;encoding=quoted-printable:this can come file or other variable
dtend:20100415t105300z
dtstamp:20100415t105337z
dtstart:20100415t105300z
location:chicago, il
priority:1
sequence:0
summary;encoding=quoted-printable:a vcal created vcal udf
transp:opaque
uid:01f5fb8d-5056-b053-a9646f5cfc7db1fb
transp:opaque
x-microsoft-cdo-busystatus:busy
x-microsoft-cdo-importance:2
begin:valarm
trigger:-pt30m
action:display
description:reminder
end:valarm
end:vevent
end:vcalendar
i'd bet bkbk's right arm it's not cf8 doing that, rather think it's perhaps in code doing it. have in application.cfm file or onrequeststart() / onrequest() methods?
i'd search of source code string...
--
adam
More discussions in ColdFusion
adobe
Comments
Post a Comment