summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2011-05-23 00:06:40 +0200
committerMichael Hamann <michael@content-space.de>2011-05-23 00:06:40 +0200
commit6c30366e477e3a6a1ebf047bc08ed5b3f9ade8dc (patch)
treefea624bfbb627e17a371e7142160c349b4271772 /inc
parent2b537ba8dc1863d603770c208ae4f91d4d0877b9 (diff)
downloadrpg-6c30366e477e3a6a1ebf047bc08ed5b3f9ade8dc.tar.gz
rpg-6c30366e477e3a6a1ebf047bc08ed5b3f9ade8dc.tar.bz2
Correct the subscription user regex FS#2250
This fixes the subscription user regex to really only not to match the author of the change but to still match users who have that username as substring in their username.
Diffstat (limited to 'inc')
-rw-r--r--inc/subscription.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/subscription.php b/inc/subscription.php
index 8e3a99a8f..669d6137d 100644
--- a/inc/subscription.php
+++ b/inc/subscription.php
@@ -278,8 +278,8 @@ function subscription_addresslist(&$data){
}
$pres = array('style' => 'every', 'escaped' => true);
if (!$self && isset($_SERVER['REMOTE_USER'])) {
- $pres['user'] = '((?:(?!' . preg_quote_cb($_SERVER['REMOTE_USER']) .
- ')\S?)+)';
+ $pres['user'] = '((?!' . preg_quote_cb($_SERVER['REMOTE_USER']) .
+ '\b)\S+)';
}
$subs = subscription_find($id, $pres);
$emails = array();