且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

污染 Ruby 对象的目的是什么?

更新时间:2022-06-12 05:18:21

在用 Perl 编写 CGI 时,这曾经是一个非常标准的做法.甚至还有一个 FAQ. 基本思想是运行时可以保证你没有隐含地信任一个被污染的值.

It used to be a pretty standard practice when writing CGIs in Perl. There is even a FAQ on it. The basic idea was that the run time could guarantee that you did not implicitly trust a tainted value.