From 394db48d19e4961d31dba4720fc81601c1e79b2c Mon Sep 17 00:00:00 2001 From: Elijah Perrault Date: Tue, 8 Feb 2011 11:07:15 -0700 Subject: [PATCH] Fixed two warnings that we didn't notice before. --- modules/Bitly.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/Bitly.pm b/modules/Bitly.pm index f56b1fa..5d5e509 100644 --- a/modules/Bitly.pm +++ b/modules/Bitly.pm @@ -61,7 +61,7 @@ sub shorten return 0; } my ($surl, $user, $key) = ($args[0], (conf_get('bitly:user'))[0][0], (conf_get('bitly:key'))[0][0]); - my $surl = uri_escape($surl); + $surl = uri_escape($surl); my $url = "http://api.bit.ly/v3/shorten?version=3.0.1&longUrl=".$surl."&apiKey=".$key."&login=".$user."&format=txt"; # Get the response via HTTP. my $response = $ua->get($url); @@ -98,7 +98,7 @@ sub reverse return 0; } my ($surl, $user, $key) = ($args[0], (conf_get('bitly:user'))[0][0], (conf_get('bitly:key'))[0][0]); - my $surl = uri_escape($surl); + $surl = uri_escape($surl); my $url = "http://api.bit.ly/v3/expand?version=3.0.1&shortURL=".$surl."&apiKey=".$key."&login=".$user."&format=txt"; # Get the response via HTTP. my $response = $ua->get($url);