summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/util.php b/lib/util.php
index 74d5971f7..6f6f1dd24 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -1319,4 +1319,10 @@ function common_profile_uri($profile) {
}
# XXX: this is a very bad profile!
return NULL;
+}
+
+function common_canonical_sms($sms) {
+ # strip non-digits
+ preg_replace('/\D/', '', $sms);
+ return $sms;
} \ No newline at end of file