Validation::Class 和 FastCGI 不能混合?
我在 Perl Web 应用程序中使用 Validation::Class 模块进行表单验证。然而,当我尝试切换到 FastCGI 时,验证停止工作。这是一个已知问题吗?某些模块无法与 FastCGI 一起使用是否很常见?如何确保我要使用的模块是“FastCGI 安全的”?
I am using the Validation::Class module for form validation in my Perl web app. However when I tried to switch to FastCGI, the validation stopped working. Is this a known issue? Is it common for some modules to not work with FastCGI? How do I make sure that modules I'm going to use are "FastCGI-safe"?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试按照无类验证示例中所示的方式使用它。
在“正常”使用中,它在编译时设置一些必要的东西,并且在 FastCGI 下使用时,这只发生一次。
我不确定您如何概括寻找不“FastCGI安全”的其他模块;这不仅仅是因为为了追求易用性,它对如何使用它做出了一些假设(基本上,给定的进程只在一个地方使用它并且只需要它一次),而这些假设在其他地方似乎不太可能遇到。
Try using it as shown in the Validation without Class example.
In the "normal" usage, it sets up some necessary stuff when it is compiled, and when used under FastCGI, that only happens once.
I'm not sure how you would generalize looking for other modules that aren't "FastCGI-safe"; this one isn't only because in pursuit of ease of use it has made some assumptions about how it is being used (basically that a given process only uses it in one place and only needs it one time) that seem unlikely to be encountered elsewhere.