Skip to content

Commit

Permalink
URI decode hrefs
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronpk committed Dec 2, 2014
1 parent 98d74b7 commit 0bb9eff
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/relparser.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ def rel_me_links(opts={})
if rels.include? 'me' and link.attribute("href")
puts " --> #{link.attribute("href").value} rel=#{link.attribute("rel")}"
href = link.attribute("href").value
href = URI.decode href

if href.match RelParser.sms_regex or href.match RelParser.email_regex
links << href
Expand Down

0 comments on commit 0bb9eff

Please sign in to comment.