aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-03-19 06:48:11 -0700
committerfriendica <info@friendica.com>2012-03-19 06:48:11 -0700
commit139a86dbd395f4601b29b9af97ac8ea190cce9f9 (patch)
treedb91bcfa5db7f11bae45f1bc2b622ca540be3eb9 /include/text.php
parent2349852b4abd1638624b541f173f51d1fb1ea011 (diff)
downloadvolse-hubzilla-139a86dbd395f4601b29b9af97ac8ea190cce9f9.tar.gz
volse-hubzilla-139a86dbd395f4601b29b9af97ac8ea190cce9f9.tar.bz2
volse-hubzilla-139a86dbd395f4601b29b9af97ac8ea190cce9f9.zip
some openid fixes, use identity url from openid server and normalise it.
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index a0ff1600e..2956c9467 100644
--- a/include/text.php
+++ b/include/text.php
@@ -1355,3 +1355,6 @@ function file_tag_unsave_file($uid,$item,$file) {
return true;
}
+function normalise_openid($s) {
+ return trim(str_replace(array('http://','https://'),array('',''),$s),'/');
+}