fix longurl title attribute, removing extra backslashes.

darcs-hash:20081114192649-099f7-338368278173f5fa130e508316f5b8b252d90214.gz
This commit is contained in:
millette 2008-11-14 14:26:49 -05:00
parent 6880084e6b
commit 1227c9c2c2

View File

@ -757,7 +757,7 @@ function common_longurl($uri) {
$uri_e = urlencode($uri);
$longurl = unserialize(file_get_contents("http://api.longurl.org/v1/expand?format=php&url=$uri_e"));
if (empty($longurl['long_url']) || $uri === $longurl['long_url']) return false;
return $longurl['long_url'];
return stripslashes($longurl['long_url']);
}
function common_shorten_links($text) {