]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix longurl title attribute, removing extra backslashes.
authormillette <millette@controlyourself.ca>
Fri, 14 Nov 2008 19:26:49 +0000 (14:26 -0500)
committermillette <millette@controlyourself.ca>
Fri, 14 Nov 2008 19:26:49 +0000 (14:26 -0500)
darcs-hash:20081114192649-099f7-338368278173f5fa130e508316f5b8b252d90214.gz

lib/util.php

index 7940f683e90e51f6c4313cf6c4a8f9952164b5e1..be391c7859aa2a8a8d158170f1fac5c435e4d928 100644 (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) {