summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-09-09 22:58:19 -0400
committerCraig Andrews <candrews@integralblue.com>2009-09-09 22:58:19 -0400
commitcd650b090a339673f2cc7797c8cb9b0eb0196f82 (patch)
treebc5148305caa7b405dfa7b681c030875a0382337 /lib/util.php
parentd7ae0ed4fd755ebad0788a17d0f2fb6a6ca9d63b (diff)
parente2848eb8621dd645fa68cb1641c0af1df5530408 (diff)
Merge remote branch 'laconica/0.8.x' into 0.9.x
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 1ade14932..b74dc619c 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1383,6 +1383,9 @@ function common_shorten_url($long_url)
$short_url_service = $reflectionObj->newInstanceArgs($_shorteners[$svc]['callInfo'][1]);
$short_url = $short_url_service->shorten($long_url);
+ if(substr($short_url,0,7)=='http://'){
+ $short_url = substr($short_url,7);
+ }
return $short_url;
}