summaryrefslogtreecommitdiff
path: root/inc/subscription.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2011-05-23 10:32:00 +0200
committerMichael Hamann <michael@content-space.de>2011-05-23 10:32:00 +0200
commitded89ef6a31e8cfcc56aa96b75be8ae6ab58dd7c (patch)
tree6d6e86aa0a3a2c5441fc1ee583d4eb97091ef19f /inc/subscription.php
parent6c30366e477e3a6a1ebf047bc08ed5b3f9ade8dc (diff)
downloadrpg-ded89ef6a31e8cfcc56aa96b75be8ae6ab58dd7c.tar.gz
rpg-ded89ef6a31e8cfcc56aa96b75be8ae6ab58dd7c.tar.bz2
Hopefully finally fixed the subscription user regex
Users with names like foo.bar still didn't receive the mail when user foo edited the page. Now the two possibilities (space and end of line) are tested instead of just a word boundary.
Diffstat (limited to 'inc/subscription.php')
-rw-r--r--inc/subscription.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/subscription.php b/inc/subscription.php
index 669d6137d..c94f17ad0 100644
--- a/inc/subscription.php
+++ b/inc/subscription.php
@@ -279,7 +279,7 @@ function subscription_addresslist(&$data){
$pres = array('style' => 'every', 'escaped' => true);
if (!$self && isset($_SERVER['REMOTE_USER'])) {
$pres['user'] = '((?!' . preg_quote_cb($_SERVER['REMOTE_USER']) .
- '\b)\S+)';
+ '(?: |$))\S+)';
}
$subs = subscription_find($id, $pres);
$emails = array();