]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
If a shortened URL begins with http://, don't include it in the shortened url. Saves...
authorCraig Andrews <candrews@integralblue.com>
Thu, 10 Sep 2009 02:57:15 +0000 (22:57 -0400)
committerCraig Andrews <candrews@integralblue.com>
Thu, 10 Sep 2009 02:57:15 +0000 (22:57 -0400)
lib/util.php

index 256acf1993bbf8bb84d7ca077959b720171040e2..3e95d2bea34afe90345d0ba42d2ec47bb4f821c7 100644 (file)
@@ -1414,6 +1414,9 @@ 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;
 }