Last active
May 9, 2016 13:35
-
-
Save takp/fec8ebc934526fc831405e596fa17471 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module SimpleOAuth | |
class Header | |
class >> self | |
def escape(value) | |
return value if value == 'filter[post_status]' | |
uri_parser.escape(value.to_s, /[^a-z0-9\-\.\_\~]/i) | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment