We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit e2848eb8 authored by Craig Andrews's avatar Craig Andrews

If a shortened URL begins with http://, don't include it in the shortened url....

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.
parent aecdba1d
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment