Postie - Version 1.9.16

Version Description

(2018-02-21) = * Fix: don't linkify URLs in style attributes

Download this release

Release Info

Developer WayneAllen
Plugin Icon 128x128 Postie
Version 1.9.16
Comparing to
See all releases

Code changes from version 1.9.15 to 1.9.16

docs/Changes.txt CHANGED
@@ -35,6 +35,9 @@ 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.15 (2018-01-25) =
39
  * Fix: accommodate extra spaces in content type header when charset is specified
40
 
35
  Attachments are now processed in the order they were attached.
36
 
37
  == CHANGELOG ==
38
+ = 1.9.16 (2018-02-21) =
39
+ * Fix: don't linkify URLs in style attributes
40
+
41
  = 1.9.15 (2018-01-25) =
42
  * Fix: accommodate extra spaces in content type header when charset is specified
43
 
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: 4.9
10
- Stable tag: 1.9.15
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: 4.9
10
+ Stable tag: 1.9.16
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
lib/autolink.php CHANGED
@@ -37,7 +37,6 @@ class PostieAutolink {
37
  $matched = preg_match($sub, $text_l, $m, PREG_OFFSET_CAPTURE, $cursor);
38
 
39
  if (!$matched) {
40
-
41
  $loop = 0;
42
  $ok = 0;
43
  } else {
@@ -84,6 +83,22 @@ class PostieAutolink {
84
  $buffer .= $fail_text;
85
  }
86
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
87
  }
88
 
89
  #
37
  $matched = preg_match($sub, $text_l, $m, PREG_OFFSET_CAPTURE, $cursor);
38
 
39
  if (!$matched) {
 
40
  $loop = 0;
41
  $ok = 0;
42
  } else {
83
  $buffer .= $fail_text;
84
  }
85
  }
86
+
87
+ if ($ok) {
88
+ #
89
+ # check to see if we're inside a style attribute
90
+ #
91
+
92
+ $needle = 'url(';
93
+ $expectedPosition = strlen($pre) - strlen($needle);
94
+ if (strripos($pre, $needle, 0) === $expectedPosition) {
95
+ DebugEcho("autolink_do: found 'url(' so not linkifying (in a style attribute)");
96
+
97
+ $ok = 0;
98
+ $cursor += $fail_len;
99
+ $buffer .= $fail_text;
100
+ }
101
+ }
102
  }
103
 
104
  #
lib/pSocketConnection.php CHANGED
@@ -59,7 +59,7 @@ class pSocketConnection extends pConnection {
59
  }
60
  $response = $this->write('LOGIN ' . $this->username . ' ' . $this->password);
61
  if (!$response || !preg_match('#^[^ ]+\s+OK#', $response[count($response) - 1])) {
62
- throw new fValidationException('The username and password provided were not accepted for the %1$s server %2$s on port %3$s. %4$s', strtoupper($this->type), $this->host, $this->port, $response[count($response) - 1]);
63
  }
64
  $this->write('SELECT "' . $this->mailbox . '"');
65
  } elseif ($this->type == 'pop3') {
59
  }
60
  $response = $this->write('LOGIN ' . $this->username . ' ' . $this->password);
61
  if (!$response || !preg_match('#^[^ ]+\s+OK#', $response[count($response) - 1])) {
62
+ throw new fValidationException('The username and password provided were not accepted for the %1$s server %2$s on port %3$s. %4$s', strtoupper($this->type), $this->host, $this->port, print_r($response, true));
63
  }
64
  $this->write('SELECT "' . $this->mailbox . '"');
65
  } elseif ($this->type == 'pop3') {
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.15
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL3
@@ -28,14 +28,14 @@
28
  */
29
 
30
  /*
31
- $Id: postie.php 1809538 2018-01-25 19:06:03Z WayneAllen $
32
  */
33
 
34
  if (!defined('WPINC')) {
35
  die; // Exit if accessed directly
36
  }
37
 
38
- define('POSTIE_VERSION', '1.9.15');
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.16
8
  Author: Wayne Allen
9
  Author URI: http://PostiePlugin.com/
10
  License: GPL3
28
  */
29
 
30
  /*
31
+ $Id: postie.php 1826607 2018-02-22 03:46:59Z WayneAllen $
32
  */
33
 
34
  if (!defined('WPINC')) {
35
  die; // Exit if accessed directly
36
  }
37
 
38
+ define('POSTIE_VERSION', '1.9.16');
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: 4.9
10
- Stable tag: 1.9.15
11
  License: GPLv2 or later
12
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
13
 
@@ -107,6 +107,9 @@ 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.15 (2018-01-25) =
111
  * Fix: accommodate extra spaces in content type header when charset is specified
112
 
@@ -1465,4 +1468,3 @@ plugin. And the rest is history :)
1465
  *
1466
  = 0.1 - 2004-06 =
1467
  * First release
1468
-
7
  Requires PHP: 5.3
8
  Requires at least: 4.0
9
  Tested up to: 4.9
10
+ Stable tag: 1.9.16
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.16 (2018-02-21) =
111
+ * Fix: don't linkify URLs in style attributes
112
+
113
  = 1.9.15 (2018-01-25) =
114
  * Fix: accommodate extra spaces in content type header when charset is specified
115
 
1468
  *
1469
  = 0.1 - 2004-06 =
1470
  * First release