summaryrefslogtreecommitdiff
path: root/lib/common.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-17 13:21:10 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-17 13:21:10 -0400
commitb2284763e21e7d455ddde4a48e6628c2e39683ba (patch)
tree7358dc98b09113375332117595551d281fef932c /lib/common.php
parenta654d63eb0ade36954afd1ea2026d9b11a0e96fd (diff)
add stub email canonicalizer
Added a stub function to stand in for eventual email canonicalizer. darcs-hash:20080517172110-84dde-d2c83cb5e88693100c444b0ed088eed327f8a77d.gz
Diffstat (limited to 'lib/common.php')
-rw-r--r--lib/common.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/common.php b/lib/common.php
index 5eed1bb81..eeffb90c1 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -236,6 +236,13 @@ function common_canonical_nickname($nickname) {
return strtolower($nickname);
}
+# get canonical version of email for comparison
+function common_canonical_email($email) {
+ # XXX: canonicalize UTF-8
+ # XXX: lcase the domain part
+ return $email;
+}
+
function common_render_content($text) {
# XXX: @ messages
# XXX: # tags