Changeset 1904427
- Timestamp:
- 07/05/2018 09:27:05 AM (8 years ago)
- Location:
- wpnewsman-newsletters/trunk
- Files:
-
- 3 edited
-
ajaxbackend.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
wpnewsman.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpnewsman-newsletters/trunk/ajaxbackend.php
r1346617 r1904427 1198 1198 1199 1199 private function unsubscribeFromList($tbl, $emailsList) { 1200 1200 1201 global $wpdb; 1201 1202 $c = 0; 1202 1203 1204 /** 1205 * Returns a string with backslashes before characters that need to be escaped. 1206 * As required by MySQL and suitable for multi-byte character sets 1207 * Characters encoded are NUL (ASCII 0), \n, \r, \, ', ", and ctrl-Z. 1208 * In addition, the special control characters % and _ are also escaped, 1209 * suitable for all statements, but especially suitable for `LIKE`. 1210 * 1211 * @param string $string String to add slashes to 1212 * @return $string with `\` prepended to reserved characters 1213 */ 1214 1215 if (function_exists('mb_ereg_replace')) 1216 { 1217 function mb_escape(string $string) 1218 { 1219 return mb_ereg_replace('[\x00\x0A\x0D\x1A\x22\x25\x27\x5C\x5F]', '\\\0', $string); 1220 } 1221 } else { 1222 function mb_escape(string $string) 1223 { 1224 return preg_replace('~[\x00\x0A\x0D\x1A\x22\x25\x27\x5C\x5F]~u', '\\\$0', $string); 1225 } 1226 } 1227 1203 1228 if ( preg_match_all('/\b[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}\b/i', $emailsList, $matches) ) { 1204 1229 … … 1208 1233 foreach ($matches[0] as $email) { 1209 1234 $email = strtolower($email); 1210 $set .= $del.'"'.m ysql_real_escape_string($email).'"';1235 $set .= $del.'"'.mb_escape($email).'"'; 1211 1236 $del = ', '; 1212 1237 $c += 1; -
wpnewsman-newsletters/trunk/readme.txt
r1757263 r1904427 3 3 Donate Link: http://wpnewsman.com/premium-newsletter-plugin-wordpress/ 4 4 Tags: wpnewsman, newsletter, newsletters, newsletter signup, newsletter widget, subscribers, post notification, email subscription, email marketing, email, emailing, subscription 5 Requires at least: 4. 35 Requires at least: 4.8 6 6 Tested up to: 4.9 7 Stable tag: 1.8.2 07 Stable tag: 1.8.21 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 127 127 == Changelog == 128 128 129 = 1.8.21 = 130 * Fixed Bulk unsubscribe option on PHP 7.1+ 131 129 132 = 1.8.20 = 130 133 * Fixed path to install dir -
wpnewsman-newsletters/trunk/wpnewsman.php
r1620951 r1904427 4 4 Plugin URI: https://wpnewsman.com 5 5 Description: You get simple yet powerful newsletter solution for WordPress. Now you can easily add double optin subscription forms in widgets, articles and pages, import and manage your lists, create and send beautiful newsletters directly from your WordPress site. You get complete freedom and a lower cost compared to Email Service Providers. Free yourself from paying for expensive email campaigns. WPNewsman plugin updated regularly with new features. 6 Version: 1.8.2 07 Author: Alex Ladyga -G-Lock Software6 Version: 1.8.21 7 Author: G-Lock Software 8 8 Author URI: http://www.glocksoft.com 9 9 */ 10 /* Copyright 2012-2013 Alex Ladyga (email : alexladyga@glocksoft.com)11 Copyright 2012-201 7G-Lock Software10 /* Copyright 2012-2013 Alex Ladyga 11 Copyright 2012-2018 G-Lock Software 12 12 13 13 This program is free software; you can redistribute it and/or modify … … 32 32 33 33 define('NEWSMAN', 'wpnewsman'); 34 define('NEWSMAN_VERSION', '1.8.2 0');34 define('NEWSMAN_VERSION', '1.8.21'); 35 35 36 36 define('NEWSMAN_MU_BUNDLED_VERSION', '1.0.7');
Note: See TracChangeset
for help on using the changeset viewer.