Skip to content

Instantly share code, notes, and snippets.

We couldn’t find that file to show.
parse822 <- function(d) strptime(d, "%a %b %d %H:%M:%S %Y")
We couldn’t find that file to show.
irb(main):001:0> require 'cgi'
=> true
irb(main):002:0> require 'uri'
=> true
irb(main):003:0> RUBY_VERSION
=> "1.8.6"
irb(main):004:0> evil = "http://www.google.com%0A%60ls%0A%60"
=> "http://www.google.com%0A%60ls%0A%60"
irb(main):005:0> unescaped_evil = CGI::unescape(evil)
=> "http://www.google.com\n`ls\n`"