Skip to content

Instantly share code, notes, and snippets.

@dball
Created January 11, 2011 16:02
Show Gist options
  • Save dball/774619 to your computer and use it in GitHub Desktop.
Save dball/774619 to your computer and use it in GitHub Desktop.
ruby-1.9.2-p136 :004 > URI.parse(value)
URI::InvalidURIError: bad URI(is not URI?): data:image/gif;base64,R0lGODlhEAAOALMAAOazToeHh0tLS/7LZv/0jvb29t/f3//Ub/
/ge8WSLf/rhf/3kdbW1mxsbP//mf///yH5BAAAAAAALAAAAAAQAA4AAARe8L1Ekyky67QZ1hLnjM5UUde0ECwLJoExKcpp
V0aCcGCmTIHEIUEqjgaORCMxIC6e0CcguWw6aFjsVMkkIr7g77ZKPJjPZqIyd7sJAgVGoEGv2xsBxqNgYPj/gAwXEQA7
from /Users/dball/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/uri/common.rb:156:in `split'
from /Users/dball/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/uri/common.rb:174:in `parse'
from /Users/dball/.rvm/rubies/ruby-1.9.2-p136/lib/ruby/1.9.1/uri/common.rb:628:in `parse'
from (irb):4
from /Users/dball/.rvm/rubies/ruby-1.9.2-p136/bin/irb:16:in `<main>'
ruby-1.9.2-p136 :005 > ^D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment