Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only scrub hash if it has a hash.

  • Loading branch information...
commit 8274352854bc6478304b55b16f7821cdf1dbd14b 1 parent 23dc14a
@mpereira mpereira authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/support/url.rb
View
2  lib/support/url.rb
@@ -15,7 +15,7 @@ def initialize(url)
URI.parse(url.insert(0, parsed_uri.port == 443 ? 'https://' :
'http://'))
end
- scrub_hash if twitter?
+ scrub_hash if twitter? && parsed_uri.fragment
rescue URI::InvalidURIError
raise
end
Please sign in to comment.
Something went wrong with that request. Please try again.