Skip to content

Instantly share code, notes, and snippets.

Created March 24, 2015 15:05
Show Gist options
  • Save anonymous/060743e96504f59108e7 to your computer and use it in GitHub Desktop.
Save anonymous/060743e96504f59108e7 to your computer and use it in GitHub Desktop.
Addressable::URI encode problem
>> Addressable::URI.escape("redacted.detect:#!/bin/sh -x\r# \r# Licensed Materials - Property of ME\r#\r# 5725-C44\r#\r# (c) Copyright of ME\nmultiline\ndata Corp. 2001, 2011\r#\r\r")
=> "redacted.detect:#!/bin/sh%20-x%0D%23%20%0D%23%20Licensed%20Materials%20-%20Property%20of%20ME%0D%23%0D%23%205725-C44%0D%23%0D%23%20(c)%20Copyright%20of%20ME"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment