阅读背景:

Ruby中清除用户提供的url字符串的最佳方法是什么,以便可以安全地插入到shell命令中?

来源:互联网 

I want to let a user of a web app enter a URL and then pass that URL onto curl. I'd rather use curl than Net::HTTP or open-uri. But this poses a security risk. What's the best way to check the URL string and prevent any injection attacks? I want to let a user of a web app enter a URL a




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

分享到: