Skip to content

Commit

Permalink
fix for url redirect change
Browse files Browse the repository at this point in the history
  • Loading branch information
ttscoff committed Jun 27, 2012
1 parent d22fffa commit 461d0f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LinkSmasher.dropzone
Expand Up @@ -53,7 +53,7 @@ def bunch_links(text)
links = text.scan(/((?:http|https):\/\/[\w\-_]+(?:\.[\w\-_]+)+(?:[\w\-\.,@?^=%&:\/~\+#]*[\w\-\@^=%&\/~\+#])?)/m)
unless links.empty?
linkbunch = CGI.escape(links.join("\n"))
url = "http://linkbun.ch/linkbunch.php?links=#{linkbunch}&bunch=Bunch&mode=api"
url = "http://www.linkbun.ch/linkbunch.php?links=#{linkbunch}&bunch=Bunch&mode=api"
res = Net::HTTP.get_response(URI.parse(url))
if res.code.to_i == 200
$dz.finish("#{links.length} links bunched")
Expand Down

0 comments on commit 461d0f4

Please sign in to comment.