fix longurl title attribute, removing extra backslashes.
darcs-hash:20081114192649-099f7-338368278173f5fa130e508316f5b8b252d90214.gz
This commit is contained in:
parent
6880084e6b
commit
1227c9c2c2
@ -757,7 +757,7 @@ function common_longurl($uri) {
|
|||||||
$uri_e = urlencode($uri);
|
$uri_e = urlencode($uri);
|
||||||
$longurl = unserialize(file_get_contents("http://api.longurl.org/v1/expand?format=php&url=$uri_e"));
|
$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;
|
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) {
|
function common_shorten_links($text) {
|
||||||
|
Loading…
Reference in New Issue
Block a user