阅读背景:

从文件中读取正则表达式是否安全?

来源:互联网 

Assuming a Perl script that allows users to specify several text filter expressions in a config file, is there a safe way to let them enter regular expressions as well, without the possibility of unintended side effects or code execution? Without actually parsing the regexes and checking them for problematic constructs, that is. There won't be any substitution, only matching.Assuming a Perl script that allows users to spe




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: