From a0f6f8ad533ee0ef89cee104d0d0ef1c0c54be7b Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Thu, 28 Oct 2010 16:05:09 -0700 Subject: preserve utf-8 on notification emails --- boot.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 1c74cc156..07810a50e 100644 --- a/boot.php +++ b/boot.php @@ -1295,4 +1295,18 @@ function activity_match($haystack,$needle) { if(($haystack === $needle) || (($basename($needle) === $haystack) && strstr($needle,NAMESPACE_ACTIVITY_SCHEMA))) return true; return false; -}} \ No newline at end of file +}} + + +if(! function_exists('get_tags')) { +function get_tags($s) { + if(preg_match_all('/([@#][^ ,.:?\-]*)[ ,.:?\-]/',$s,$match)) + return $match[1]; +}} + + +if(! function_exists('qp')) { +function qp($s) { +return str_replace ("%","=",rawurlencode($s)); +}} + -- cgit v1.2.3