diff --git a/README.md b/README.md index 0d4b979..62e6c47 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -## MentionMe 3.2.9 +## MentionMe 3.2.10 A plugin for MyBB 1.8.x that allows Twitter-style tagging and integration with [MyAlerts](https://github.com/euantorano/MyAlerts) diff --git a/Upload/inc/plugins/MentionMe/forum.php b/Upload/inc/plugins/MentionMe/forum.php index 796b858..8ad2530 100644 --- a/Upload/inc/plugins/MentionMe/forum.php +++ b/Upload/inc/plugins/MentionMe/forum.php @@ -28,7 +28,7 @@ function mentionMeParseMessage($message) global $mybb; // emails addresses cause issues, strip them before matching - $emailRegex = "#\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b#i"; + $emailRegex = "#\b[^@[\"|'|`]][A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b#i"; preg_match_all($emailRegex, $message, $emails, PREG_SET_ORDER); $message = preg_replace($emailRegex, "\n", $message); diff --git a/Upload/inc/plugins/mention.php b/Upload/inc/plugins/mention.php index 3c3f1ec..d0f3c90 100644 --- a/Upload/inc/plugins/mention.php +++ b/Upload/inc/plugins/mention.php @@ -14,7 +14,7 @@ // checked by other plugin files define('IN_MENTIONME', true); -define('MENTIONME_VERSION', '3.2.9'); +define('MENTIONME_VERSION', '3.2.10'); // register custom class autoloader spl_autoload_register('mentionMeClassAutoLoad');