Skip to content
Permalink
Browse files

[BUGFIX] Properly use ";" instead of "," to split mails

  • Loading branch information...
fe-hicking committed Sep 9, 2019
1 parent 3a4c30c commit aa3c6deb70804dd00194178d6fa1483d0c2dea88
@@ -1,9 +1,9 @@
1.48
1.49
----
* Serendipity 2.3 compatibility:
* Remove function call to serendipity_purgeEntry
* Proper evaluation of allow_comments/moderate_comments booleans
* Adds ability to specify multiple valid e-mail addresses
* Adds ability to specify multiple valid e-mail addresses by semicolon
* PHP7 compatibility:
* use quoted_printable_decode instead of a preg-e rule
* Use foreach instead of while(list(...) = each())
@@ -12,7 +12,7 @@
require_once('o2.php');
// Default values
define('POPFETCHER_VERSION', '1.48'); // This version of Popfetcher
define('POPFETCHER_VERSION', '1.49'); // This version of Popfetcher
define('DEFAULT_ADMINMENU', 'true'); // True if run as sidebar plugin. False if external plugin.
define('DEFAULT_HIDENAME', 'popfetcher'); // User should set this to something unguessable
define('DEFAULT_MAILSERVER', '');
@@ -1131,7 +1131,7 @@ function workPopfetcher(&$eventData) {
$date = (isset($s->headers['date'])) ? $s->headers['date'] : MF_MSG3;
$from = (isset($s->headers['from'])) ? $s->headers['from'] : MF_MSG4;
if (strlen($onlyfrom) > 0) {
$onlyfrom_parts = explode(',', $onlyfrom);
$onlyfrom_parts = explode(';', $onlyfrom);
$validSender = false;
foreach($onlyfrom_parts AS $onlyfrom_part) {
if (trim($from) == trim($onlyfrom_part)) {

0 comments on commit aa3c6de

Please sign in to comment.
You can’t perform that action at this time.