阅读背景:

对Python的正则表达式使用用户输入安全吗?

来源:互联网 

I would like to let my users use regular expressions for some features. I'm curious what the implications are of passing user input to re.compile(). I assume there is no way for a user to give me a string that could let them execute arbitrary code. The dangers I have thought of are:I would like to let my users use regular expres




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

分享到: