summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 7940f683e..be391c785 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -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) {