如何防止Coldfusion注入cfform.js到head部分? [英] How to prevent Coldfusion from injecting cfform.js into the head section?

查看:136
本文介绍了如何防止Coldfusion注入cfform.js到head部分?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

将HTML模板传递给Coldfusion。模板的head标签具有附加属性:

An HTML template is passed to Coldfusion. The head tag of the template has additional attribute:

<head profile="http://abc.com">



<

The issue is that when generating the output based on this template Coldfusion injects its scripts inside the head tag:

<head <script type="text/javascript" src="/CFIDE/scripts/cfform.js"></script>
<script type="text/javascript" src="/CFIDE/scripts/masks.js"></script>
profile="http://abc.com">

这会导致 profile =http://abc.com> 出现在页面顶部并阻止页面验证。

This causes profile="http://abc.com"> to appear on the top of the page and prevents page from validation.

代码注入仅在有表单标签时才会发生。如果head标记没有任何属性,则不会发生错误位置注入。属性的存在是项目要求,不能省略。

The code injection occurs only when there is a form tag. The wrong-place injection does not happen if the head tag does not have any attributes. The presence of the attribute is a project requirement and cannot be omitted.

是否可以防止Coldfusion注入脚本?

Is it possible to prevent Coldfusion from injecting the scripts?

推荐答案

脚本注入只发生在cfforms,而不是标准表单。如果您不使用任何cfform的增强功能,您只需切换到标准窗体。

The script injection only happens for cfforms, not standard forms. If you aren't using any of cfform's enhancements, you can simply switch to a standard form.

我检查了累积修补程序列表,但没有看到此修复。

I checked the cumulative hotfix list, and didn't see a fix for this.

这篇关于如何防止Coldfusion注入cfform.js到head部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆