[BUGFIX] Properly use ";" instead of "," to split mails
This commit is contained in:
parent
3a4c30ca3f
commit
aa3c6deb70
2 changed files with 4 additions and 4 deletions
|
@ -1,9 +1,9 @@
|
||||||
1.48
|
1.49
|
||||||
----
|
----
|
||||||
* Serendipity 2.3 compatibility:
|
* Serendipity 2.3 compatibility:
|
||||||
* Remove function call to serendipity_purgeEntry
|
* Remove function call to serendipity_purgeEntry
|
||||||
* Proper evaluation of allow_comments/moderate_comments booleans
|
* 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:
|
* PHP7 compatibility:
|
||||||
* use quoted_printable_decode instead of a preg-e rule
|
* use quoted_printable_decode instead of a preg-e rule
|
||||||
* Use foreach instead of while(list(...) = each())
|
* Use foreach instead of while(list(...) = each())
|
||||||
|
|
|
@ -12,7 +12,7 @@ require_once('tmobile.php');
|
||||||
require_once('o2.php');
|
require_once('o2.php');
|
||||||
|
|
||||||
// Default values
|
// 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_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_HIDENAME', 'popfetcher'); // User should set this to something unguessable
|
||||||
define('DEFAULT_MAILSERVER', '');
|
define('DEFAULT_MAILSERVER', '');
|
||||||
|
@ -1131,7 +1131,7 @@ class serendipity_event_popfetcher extends serendipity_event
|
||||||
$date = (isset($s->headers['date'])) ? $s->headers['date'] : MF_MSG3;
|
$date = (isset($s->headers['date'])) ? $s->headers['date'] : MF_MSG3;
|
||||||
$from = (isset($s->headers['from'])) ? $s->headers['from'] : MF_MSG4;
|
$from = (isset($s->headers['from'])) ? $s->headers['from'] : MF_MSG4;
|
||||||
if (strlen($onlyfrom) > 0) {
|
if (strlen($onlyfrom) > 0) {
|
||||||
$onlyfrom_parts = explode(',', $onlyfrom);
|
$onlyfrom_parts = explode(';', $onlyfrom);
|
||||||
$validSender = false;
|
$validSender = false;
|
||||||
foreach($onlyfrom_parts AS $onlyfrom_part) {
|
foreach($onlyfrom_parts AS $onlyfrom_part) {
|
||||||
if (trim($from) == trim($onlyfrom_part)) {
|
if (trim($from) == trim($onlyfrom_part)) {
|
||||||
|
|
Loading…
Reference in a new issue