You can prevent this vulnerability by ensuring that on-demand scripts are validated and that content generated from the scripts is encoded properly to prevent execution of malicious code.
通过确保按需脚本被验证并确保从那些脚本生成的内容被适当编码以阻止恶意代码的执行,您可以避免这类漏洞。
Options also allow the user to control whether generated code files are read-only, and whether the Schema description is strictly validated.
其中所具有的选项还使用户可以控制生成的代码文件是否是只读的,以及是否严格验证schema描述。
Recapping the action, you validated the ZIP code, created the XML request to call the web service, parsed the XML response, and put the city and state fields in the @address object.
现在简要重述一下刚才的操作,您验证了邮政区码,创建了调用 Web services 的 XML 请求,解析了 XML 响应并将城市和州字段放入了 @address 对象。
应用推荐