summaryrefslogtreecommitdiff
path: root/includes/model/Message_model.php
diff options
context:
space:
mode:
authorBot <bot@myigel.name>2017-01-21 19:47:44 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2017-01-21 20:12:48 +0100
commit740026a9de6cba73c4e77aba78950d0a791b6b62 (patch)
tree187eb8fc8bccf731c095c00d6f8108ba0f4b8b06 /includes/model/Message_model.php
parent915ce28feeb9104bf7854ccbd80caebb5dce4aaa (diff)
Replaced [0-9] with \d
Diffstat (limited to 'includes/model/Message_model.php')
-rw-r--r--includes/model/Message_model.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/model/Message_model.php b/includes/model/Message_model.php
index a7da63b8..ebd4b37e 100644
--- a/includes/model/Message_model.php
+++ b/includes/model/Message_model.php
@@ -41,7 +41,7 @@ function Message_send($receiver_user_id, $text)
global $user;
$text = preg_replace("/([^\p{L}\p{P}\p{Z}\p{N}\n]{1,})/ui", '', strip_tags($text));
- $receiver_user_id = preg_replace('/([^0-9]{1,})/ui', '', strip_tags($receiver_user_id));
+ $receiver_user_id = preg_replace('/([^\d]{1,})/ui', '', strip_tags($receiver_user_id));
if (
($text != '' && is_numeric($receiver_user_id))