Permalink
Browse files

Only scrub hash if it has a hash.

  • Loading branch information...
1 parent 23dc14a commit 8274352854bc6478304b55b16f7821cdf1dbd14b @mpereira mpereira committed Oct 19, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/support/url.rb
View
@@ -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

0 comments on commit 8274352

Please sign in to comment.