Version Description
(2019-01-10) = * fix IMAP end of message detection * remove insecure cURL settings * fix simple_html_dom regex to be compatible with PHP 7.3
Download this release
Release Info
Developer | WayneAllen |
Plugin | Postie |
Version | 1.9.28 |
Comparing to | |
See all releases |
Code changes from version 1.9.27 to 1.9.28
- docs/Changes.txt +5 -0
- docs/Postie.txt +1 -1
- lib/pCurlConnection.php +2 -4
- lib/pImapMailServer.php +1 -1
- lib/simple_html_dom.php +4 -4
- postie.class.php +1 -1
- postie.php +3 -3
- readme.txt +6 -1
docs/Changes.txt
CHANGED
@@ -35,6 +35,11 @@ All script, style and body tags are stripped from html emails.
|
|
35 |
Attachments are now processed in the order they were attached.
|
36 |
|
37 |
== CHANGELOG ==
|
|
|
|
|
|
|
|
|
|
|
38 |
= 1.9.27 (2018-12-20) =
|
39 |
* Add new filter postie_parent_post to allow custom parent post detection
|
40 |
* Existing parent post detection now only looks at the configured post type and uses the most recent if multiple are found
|
35 |
Attachments are now processed in the order they were attached.
|
36 |
|
37 |
== CHANGELOG ==
|
38 |
+
= 1.9.28 (2019-01-10) =
|
39 |
+
* fix IMAP end of message detection
|
40 |
+
* remove insecure cURL settings
|
41 |
+
* fix simple_html_dom regex to be compatible with PHP 7.3
|
42 |
+
|
43 |
= 1.9.27 (2018-12-20) =
|
44 |
* Add new filter postie_parent_post to allow custom parent post detection
|
45 |
* Existing parent post detection now only looks at the configured post type and uses the most recent if multiple are found
|
docs/Postie.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: e-mail, email, post-by-email
|
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.0
|
9 |
Tested up to: 5.0
|
10 |
-
Stable tag: 1.9.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.0
|
9 |
Tested up to: 5.0
|
10 |
+
Stable tag: 1.9.28
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
lib/pCurlConnection.php
CHANGED
@@ -19,8 +19,6 @@ class pCurlConnection extends pConnection {
|
|
19 |
}
|
20 |
|
21 |
public function write($command, $expected = null) {
|
22 |
-
|
23 |
-
|
24 |
$suffix = '';
|
25 |
if ($this->type == 'imap') {
|
26 |
if ($command == 'LOGOUT') {
|
@@ -40,8 +38,8 @@ class pCurlConnection extends pConnection {
|
|
40 |
curl_setopt($ch, CURLOPT_PORT, $this->port);
|
41 |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
42 |
curl_setopt($ch, CURLOPT_HEADER, false);
|
43 |
-
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
44 |
-
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
45 |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->timeout);
|
46 |
curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
|
47 |
curl_setopt($ch, CURLOPT_NOBODY, true);
|
19 |
}
|
20 |
|
21 |
public function write($command, $expected = null) {
|
|
|
|
|
22 |
$suffix = '';
|
23 |
if ($this->type == 'imap') {
|
24 |
if ($command == 'LOGOUT') {
|
38 |
curl_setopt($ch, CURLOPT_PORT, $this->port);
|
39 |
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
|
40 |
curl_setopt($ch, CURLOPT_HEADER, false);
|
41 |
+
//curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
42 |
+
//curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
43 |
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $this->timeout);
|
44 |
curl_setopt($ch, CURLOPT_TIMEOUT, $this->timeout);
|
45 |
curl_setopt($ch, CURLOPT_NOBODY, true);
|
lib/pImapMailServer.php
CHANGED
@@ -92,7 +92,7 @@ class pImapMailServer extends pMailServer {
|
|
92 |
continue;
|
93 |
}
|
94 |
if (trim($line) == ')') {
|
95 |
-
break;
|
96 |
}
|
97 |
if (strlen($message) + strlen($line) + 2 > $match[1]) {
|
98 |
//DebugEcho("fetchMessageSource: last ($i) $line");
|
92 |
continue;
|
93 |
}
|
94 |
if (trim($line) == ')') {
|
95 |
+
//break;
|
96 |
}
|
97 |
if (strlen($message) + strlen($line) + 2 > $match[1]) {
|
98 |
//DebugEcho("fetchMessageSource: last ($i) $line");
|
lib/simple_html_dom.php
CHANGED
@@ -685,8 +685,8 @@ class simple_html_dom_node
|
|
685 |
// Notice the \[ starting the attbute? and the @? following? This implies that an attribute can begin with an @ sign that is not captured.
|
686 |
// This implies that an html attribute specifier may start with an @ sign that is NOT captured by the expression.
|
687 |
// farther study is required to determine of this should be documented or removed.
|
688 |
-
// $pattern = "/([\w
|
689 |
-
$pattern = "/([\w
|
690 |
preg_match_all($pattern, trim($selector_string).' ', $matches, PREG_SET_ORDER);
|
691 |
if (is_object($debug_object)) {$debug_object->debug_log(2, "Matches Array: ", $matches);}
|
692 |
|
@@ -902,7 +902,7 @@ class simple_html_dom_node
|
|
902 |
{
|
903 |
// Thanks to user gnarf from stackoverflow for this regular expression.
|
904 |
$attributes = array();
|
905 |
-
preg_match_all("/([\w
|
906 |
foreach ($matches as $match) {
|
907 |
$attributes[$match[1]] = $match[2];
|
908 |
}
|
@@ -1382,7 +1382,7 @@ class simple_html_dom
|
|
1382 |
return true;
|
1383 |
}
|
1384 |
|
1385 |
-
if (!preg_match("/^[\w
|
1386 |
$node->_[HDOM_INFO_TEXT] = '<' . $tag . $this->copy_until('<>');
|
1387 |
if ($this->char==='<') {
|
1388 |
$this->link_nodes($node, false);
|
685 |
// Notice the \[ starting the attbute? and the @? following? This implies that an attribute can begin with an @ sign that is not captured.
|
686 |
// This implies that an html attribute specifier may start with an @ sign that is NOT captured by the expression.
|
687 |
// farther study is required to determine of this should be documented or removed.
|
688 |
+
// $pattern = "/([\w\-:\*]*)(?:\#([\w\-]+)|\.([\w\-]+))?(?:\[@?(!?[\w\-]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
|
689 |
+
$pattern = "/([\w\-:\*]*)(?:\#([\w\-]+)|\.([\w\-]+))?(?:\[@?(!?[\w\-:]+)(?:([!*^$]?=)[\"']?(.*?)[\"']?)?\])?([\/, ]+)/is";
|
690 |
preg_match_all($pattern, trim($selector_string).' ', $matches, PREG_SET_ORDER);
|
691 |
if (is_object($debug_object)) {$debug_object->debug_log(2, "Matches Array: ", $matches);}
|
692 |
|
902 |
{
|
903 |
// Thanks to user gnarf from stackoverflow for this regular expression.
|
904 |
$attributes = array();
|
905 |
+
preg_match_all("/([\w\-]+)\s*:\s*([^;]+)\s*;?/", $this->attr['style'], $matches, PREG_SET_ORDER);
|
906 |
foreach ($matches as $match) {
|
907 |
$attributes[$match[1]] = $match[2];
|
908 |
}
|
1382 |
return true;
|
1383 |
}
|
1384 |
|
1385 |
+
if (!preg_match("/^[\w\-:]+$/", $tag)) {
|
1386 |
$node->_[HDOM_INFO_TEXT] = '<' . $tag . $this->copy_until('<>');
|
1387 |
if ($this->char==='<') {
|
1388 |
$this->link_nodes($node, false);
|
postie.class.php
CHANGED
@@ -342,7 +342,7 @@ class Postie {
|
|
342 |
return;
|
343 |
}
|
344 |
DebugEcho("Registered filters for $hook");
|
345 |
-
DebugDump($wp_filter[$hook]);
|
346 |
}
|
347 |
|
348 |
function save_attachment(&$attachment, $post_id, $config) {
|
342 |
return;
|
343 |
}
|
344 |
DebugEcho("Registered filters for $hook");
|
345 |
+
DebugDump($wp_filter[$hook]->callbacks);
|
346 |
}
|
347 |
|
348 |
function save_attachment(&$attachment, $post_id, $config) {
|
postie.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Postie
|
5 |
Plugin URI: http://PostiePlugin.com/
|
6 |
Description: Create posts via email. Significantly upgrades the Post by Email features of WordPress.
|
7 |
-
Version: 1.9.
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
@@ -28,14 +28,14 @@
|
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
-
$Id: postie.php
|
32 |
*/
|
33 |
|
34 |
if (!defined('WPINC')) {
|
35 |
die; // Exit if accessed directly
|
36 |
}
|
37 |
|
38 |
-
define('POSTIE_VERSION', '1.9.
|
39 |
define('POSTIE_ROOT', dirname(__FILE__));
|
40 |
define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
41 |
|
4 |
Plugin Name: Postie
|
5 |
Plugin URI: http://PostiePlugin.com/
|
6 |
Description: Create posts via email. Significantly upgrades the Post by Email features of WordPress.
|
7 |
+
Version: 1.9.28
|
8 |
Author: Wayne Allen
|
9 |
Author URI: http://PostiePlugin.com/
|
10 |
License: GPL3
|
28 |
*/
|
29 |
|
30 |
/*
|
31 |
+
$Id: postie.php 2010324 2019-01-11 01:55:47Z WayneAllen $
|
32 |
*/
|
33 |
|
34 |
if (!defined('WPINC')) {
|
35 |
die; // Exit if accessed directly
|
36 |
}
|
37 |
|
38 |
+
define('POSTIE_VERSION', '1.9.28');
|
39 |
define('POSTIE_ROOT', dirname(__FILE__));
|
40 |
define('POSTIE_URL', WP_PLUGIN_URL . '/' . basename(dirname(__FILE__)));
|
41 |
|
readme.txt
CHANGED
@@ -7,7 +7,7 @@ Tags: e-mail, email, post-by-email
|
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.0
|
9 |
Tested up to: 5.0
|
10 |
-
Stable tag: 1.9.
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
@@ -107,6 +107,11 @@ All script, style and body tags are stripped from html emails.
|
|
107 |
Attachments are now processed in the order they were attached.
|
108 |
|
109 |
== CHANGELOG ==
|
|
|
|
|
|
|
|
|
|
|
110 |
= 1.9.27 (2018-12-20) =
|
111 |
* Add new filter postie_parent_post to allow custom parent post detection
|
112 |
* Existing parent post detection now only looks at the configured post type and uses the most recent if multiple are found
|
7 |
Requires PHP: 5.3
|
8 |
Requires at least: 4.0
|
9 |
Tested up to: 5.0
|
10 |
+
Stable tag: 1.9.28
|
11 |
License: GPLv2 or later
|
12 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
13 |
|
107 |
Attachments are now processed in the order they were attached.
|
108 |
|
109 |
== CHANGELOG ==
|
110 |
+
= 1.9.28 (2019-01-10) =
|
111 |
+
* fix IMAP end of message detection
|
112 |
+
* remove insecure cURL settings
|
113 |
+
* fix simple_html_dom regex to be compatible with PHP 7.3
|
114 |
+
|
115 |
= 1.9.27 (2018-12-20) =
|
116 |
* Add new filter postie_parent_post to allow custom parent post detection
|
117 |
* Existing parent post detection now only looks at the configured post type and uses the most recent if multiple are found
|