summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2009-09-10 12:13:43 -0400
committerCraig Andrews <candrews@integralblue.com>2009-09-10 12:13:43 -0400
commit584ea1b23c540cdd781f52eeecd6ad893f63c1a8 (patch)
tree936057e81c3ece18380d08aea02d9673c365d2c6 /lib/util.php
parent3504ef5721da743799776fb8c94c6416c2d1ba06 (diff)
Revert "If a shortened URL begins with http://, don't include it in the shortened url. Saves 7 characters, which is pretty awesome for 140 character max length notices."
This reverts commit e2848eb8621dd645fa68cb1641c0af1df5530408. Downstream consumers of our notices (such as Friendfeed, Facebook, etc) don't have sophisticated URL detection, so a notice that reads: "check out ur1.ca/1" won't be linked. So the http:// prefix is mandatory.
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/util.php b/lib/util.php
index 3e95d2bea..256acf199 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1414,9 +1414,6 @@ function common_shorten_url($long_url)
curl_close($curlh);
- if(substr($short_url,0,7)=='http://'){
- $short_url = substr($short_url,7);
- }
return $short_url;
}