diff options
Diffstat (limited to 'include/text.php')
-rwxr-xr-x | include/text.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php index 2b334068f..2bf760035 100755 --- a/include/text.php +++ b/include/text.php @@ -621,6 +621,11 @@ function get_tags($s) { } +function strip_zids($s) { + return preg_replace('/[\?&]zid=(.*?)(&|$)/ism','$2',$s); +} + + // quick and dirty quoted_printable encoding @@ -1919,3 +1924,7 @@ function in_arrayi($needle, $haystack) { return in_array(strtolower($needle), array_map('strtolower', $haystack)); } +function normalise_openid($s) { + return trim(str_replace(array('http://','https://'),array('',''),$s),'/'); +} + |