summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-25 13:33:08 -0500
committerEvan Prodromou <evan@status.net>2010-02-25 13:33:08 -0500
commit5ea01435c1c4d0f3c4d7de5ee024b1365c8a2ace (patch)
tree2a7a2aff0dc4690c375b1c4dab2239e56552c8a6
parent85b5f0172940bd9d6acd6433f7c1d446495a281f (diff)
parent39a8e9d8e679cfd02e47fa93aa26373101515cf9 (diff)
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into testing
-rw-r--r--lib/util.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/util.php b/lib/util.php
index 9354431f2..9c50d9931 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1606,6 +1606,7 @@ function common_database_tablename($tablename)
*/
function common_shorten_url($long_url)
{
+ $long_url = trim($long_url);
$user = common_current_user();
if (empty($user)) {
// common current user does not find a user when called from the XMPP daemon
@@ -1620,7 +1621,7 @@ function common_shorten_url($long_url)
return $long_url;
}else{
//URL was shortened, so return the result
- return $shortenedUrl;
+ return trim($shortenedUrl);
}
}