summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Util.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Util.php b/src/Util.php
index 38aec11..c11263e 100644
--- a/src/Util.php
+++ b/src/Util.php
@@ -8,11 +8,9 @@ function build_message_id($postId, $editId, $time, $forumHost) {
return "<$time.$postId.$editId.bridge@$forumHost>";
}
-/*
function is_ascii($string) {
- return !preg_match('/[^\x00-\x7F]/S', $str);
+ return !preg_match('/[^[:ascii:]]/', $str);
}
-*/
function utf8_quote($string) {
return '=?UTF-8?B?' . base64_encode($string) . '?=';