Tracking the origin of different sources of information would be difficult, if it wasn't for a built-in mode provided by Perl called taint mode.
如果Perl没有提供称为污染模式的内置模式,那么追踪不同信息的来源就会变得很困难。
Perl generates errors and stops execution if taint mode is enabled and it identifies a tainted value being used. For example, using an insecure PATH generates the following error.
如果启用了污染模式,Perl会产生错误并停止执行,它还会识别出正在使用的受污染值。
应用推荐