Open postmodern opened 8 years ago
I noticed you request /robots.txt using open-uri. Since open-uri overrides Kernel#open, it also allows for possible command injection (ex: open("| ls")). I think using Net::HTTP.get would be Good Enough (tm).
/robots.txt
Kernel#open
open("| ls")
Net::HTTP.get
I noticed you request
/robots.txt
using open-uri. Since open-uri overridesKernel#open
, it also allows for possible command injection (ex:open("| ls")
). I think usingNet::HTTP.get
would be Good Enough (tm).