我已经完成了修复网站问题的任务。该网站是使用ColdFusion创建的,并且某些页面中还包含eform。问题是每当我试图查看带有eform的页面时,它都会被浏览器阻止(只有eform被阻止,其他人才能正常查看)。只有IE 7或8版才能查看它。
如果在最新的IE中查看(Chrome和Firefox也无法查看eform)。它将显示以下消息: -
Content was blocked because it was not signed by a valid security certificate.
For more information, see “About Certificate Errors” in Internet Explorer Help.
我认为问题在于不受信任的站点证书或自签名证书,因此我谷歌并尝试了一些解决方案但失败了。奇怪的是,除了eform之外,其他内容都可以查看。
如果你们中的一些人想知道代码,这是一个包含eform的页面代码; -
<cfinclude template="#request.siteContext.appSettings.header#">
<cfinclude template="_LANGnext_form2.cfm" />
<cfheader name="P3P" value='CP="CAO PSA OUR"'>
<cfoutput>
<link rel="stylesheet" href="#REQUEST.siteContext.appSettings.root#/search/css/common.css">
</cfoutput>
<!---<cfparam name="url.idappli" default="0" />--->
<cfparam name="form.select" default="0" />
<cfparam name="url.userid" default="0" />
<cfparam name="form.idappli" default="0" />
<cfscript>
CreateObject("component","ipo.util.title").header("#HdrProfile#,#HdrProfile2#,#HdrProfile3#, #HdrProfile4#");
</cfscript>
<cfquery name="qRead" datasource="#REQUEST.siteContext.appSettings.dsn2#" >
SELECT EXTIDAPPLI, IDAPPLI, IDAGENT, IDPERSON, DTAPPLI, LGSTAPPLI, DTPUBAPPLI,TYAPPLIC
FROM SOPRANO.PTAPPLI
WHERE EXTIDAPPLI like <cfqueryparam cfsqltype="cf_sql_varchar" value="%#FORM.idappli#" />
</cfquery>
<cfif #form.idappli# NEQ '0'>
<cfif isdefined('qRead.recordcount') NEQ 0 AND #qRead.recordcount# NEQ '0'>
<cfif IsDate(qRead.DTAPPLI)>
<cfset dtapplication = CreateODBCDate(qRead.DTAPPLI) />
<cfelse>
<cfset dtapplication = "" />
</cfif>
<cfset dtNow = CreateODBCDate(NOW()) />
<cfquery name="qSts" datasource="#REQUEST.siteContext.appSettings.dsn2#" >
SELECT DESCSTATUS
FROM SOPRANO.STATUS
WHERE IDSTATUS = <cfqueryparam cfsqltype="cf_sql_varchar" value="#qRead.LGSTAPPLI#" />
</cfquery>
<cfset LOCAL.currentStatus = qRead.LGSTAPPLI />
<cfset LOCAL.currentStatusdesc = qSts.DESCSTATUS />
<cfquery name="qLgsts" datasource="#REQUEST.siteContext.appSettings.dsn#" >
SELECT CD_FRM
FROM CLEGALSTS
WHERE CD_ID = <cfqueryparam cfsqltype="cf_sql_varchar" value="#LOCAL.currentStatus#" />
AND CD_TYPE = 'TM'
</cfquery>
<!--- <CFSET idappli = '#qRead.EXTIDAPPLI#'> --->
<CFOUTPUT>
<cfform name="myForm" method="post" action="new_pt.cfm">
<fieldset style="border:2px solid maroon">
<legend style="font-weight:bold"><cfoutput>#SubTitle#</cfoutput></legend>
<table class="MainContent" width="100%" border="0" cellpadding="2" cellspacing="0" align="center">
<tr>
<td>
<cfif form.select eq '01'>
<!--- <cfset url1 = 'http://172.16.0.56:8080/lfserver/Form1?userid=#userid#'> --->
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form1?userid='& SESSION.ipouser.username) />
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<!--- <iframe id="efrm" src="<cfoutput>#URLDecode(url1)#</cfoutput>" width="100%" frameborder="0" height="800"></iframe> --->
<cfelseif form.select eq '14'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form14?userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq '2A'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form2A?userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq '5C'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form5C?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<cfif ListFind(qLgsts.CD_FRM,"5C",",") EQ 0>
<cfset proceed = false />
<cfmodule template="#request.siteContext.appSettings.root#/include/tabletop.cfm" width="50%">
<div align="center"><p>
Cannot proceed with Patent Form 5C.<br />
Current Application Status = "#LOCAL.currentStatusdesc#"
</p></div>
<cfmodule template="#request.siteContext.appSettings.root#/include/tablebottom.cfm">
<cfelse>
<cfset proceed = true />
</cfif>
<cfif proceed>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
</cfif>
<cfelseif form.select eq '5F'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form5F?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<cfif ListFind(qLgsts.CD_FRM,"5F",",") EQ 0>
<cfset proceed = false />
<cfmodule template="#request.siteContext.appSettings.root#/include/tabletop.cfm" width="50%">
<div align="center"><p>
Cannot proceed with Patent Form 5F.<br />
Current Application Status = "#LOCAL.currentStatusdesc#"
</p></div>
<cfmodule template="#request.siteContext.appSettings.root#/include/tablebottom.cfm">
<cfelse>
<cfset proceed = true />
</cfif>
<cfif proceed>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
</cfif>
<cfelseif form.select eq '5H'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form5H?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq '5I'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form5I?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq '11'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form11?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<cfif ListFind(qLgsts.CD_FRM,"11",",") EQ 0>
<cfset proceed = false />
<cfmodule template="#request.siteContext.appSettings.root#/include/tabletop.cfm" width="50%">
<div align="center"><p>
Cannot proceed with Patent Form 11.<br />
Current Application Status = "#LOCAL.currentStatusdesc#"
</p></div>
<cfmodule template="#request.siteContext.appSettings.root#/include/tablebottom.cfm">
<cfelse>
<cfset proceed = true />
</cfif>
<cfif proceed>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
</cfif>
<cfelseif form.select eq '12'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form12?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<cfif ListFind(qLgsts.CD_FRM,"12",",") EQ 0>
<cfset proceed = false />
<cfmodule template="#request.siteContext.appSettings.root#/include/tabletop.cfm" width="50%">
<div align="center"><p>
Cannot proceed with Patent Form 12.<br />
Current Application Status = "#LOCAL.currentStatusdesc#"
</p></div>
<cfmodule template="#request.siteContext.appSettings.root#/include/tablebottom.cfm">
<cfelse>
<cfset proceed = true />
</cfif>
<cfif proceed>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
</cfif>
<cfelseif form.select eq '17'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form17?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<!---fitri--->
<cfelseif form.select eq '22'>
<!--- <!---<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form17?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>--->
<iframe id="efrm" src="../fitri/form22.cfm" width="100%" frameborder="0" height="800"></iframe>
<!---end fitri---> --->
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form22?appno=#qRead.EXTIDAPPLI#&userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq 'renew'>
<cflocation url="renew.cfm?jenis=renew&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
<cfelseif form.select eq 'surcharge'>
<cflocation url="renew.cfm?jenis=renew&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
<!---<cflocation url="surcharge_payment.cfm?jenis=surcharge&extidappli=#qRead.EXTIDAPPLI#" addtoken="no">--->
<cfelseif form.select eq 'PM36(b)'>
<cflocation url="attachment.cfm?jenis=PM36(b)&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
<cfelseif form.select eq 'PM36(a)'>
<cflocation url="attachment.cfm?jenis=PM36(a)&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
<cfelseif form.select eq 'PM59(a)'>
<cflocation url="attachment.cfm?jenis=PM59(a)&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
<cfelseif form.select eq 'PM59(b)'>
<cflocation url="attachment.cfm?jenis=PM59(b)&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
<cfelseif form.select eq 'PM59(c)'>
<cflocation url="attachment.cfm?jenis=PM59(c)&idappli=#qRead.EXTIDAPPLI#" addtoken="no">
</cfif>
</td>
</tr>
<tr align="center">
<td class="parfont"><br>
<cfinput type="button" name="return" value="#BtnBack#" onClick="javascript:window.location.href='new_pt.cfm'" class="button2" style="width:80px">
</td>
</tr>
</table>
</fieldset>
</cfform>
</CFOUTPUT>
<cfelseif isdefined('qRead.recordcount') NEQ 0 AND #qRead.recordcount# EQ 0>
<cfform name="myForm">
<table class="MainContent" width="100%" border="0" cellpadding="2" cellspacing="0" align="center">
<tr align="center">
<td>Application Number Not Found.<br /></td>
</tr>
<tr align="center">
<td><cfinput type="button" name="return" value="#BtnBack#" onClick="javascript:self.history.back()" class="button2" style="width:80px"></td>
</tr>
</table>
</cfform>
</cfif>
<cfelse>
<cfform name="myForm" method="post" action="new_pt.cfm">
<table class="MainContent" width="100%" border="0" cellpadding="2" cellspacing="0" align="center">
<tr>
<td>
<cfif form.select eq '01'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form1?userid='& SESSION.ipouser.username) />
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq '2A'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form2A?userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe>
<cfelseif form.select eq '14'>
<cfset url1 = URLEncodedFormat(REQUEST.siteContext.appSettings.eformserver& '/lfserver/Form14?userid='& SESSION.ipouser.username)>
<iframe id="efrm" src="template/tmp_url.cfm?url1=<cfoutput>#url1#</cfoutput>" width="100%" frameborder="0" height="800"></iframe> </cfif>
</td>
</tr>
</table>
</cfform>
</cfif>
<cfinclude template="#request.siteContext.appSettings.footer#">