Guest User

Untitled

a guest
Feb 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. class << Addressable::URI
  2. # ActionController::Routing passes an unsafe char regex to URI.escape. However,
  3. # Addressable::URI.escape has the correct unsafe char regexes for each url part.
  4. def escape(uri, whatever)
  5. encode(uri)
  6. end
  7. end
Add Comment
Please, Sign In to add comment