Version Description
- Misc improvements
Download this release
Release Info
Developer | codepeople |
Plugin | Contact Form Email |
Version | 1.3.30 |
Comparing to | |
See all releases |
Code changes from version 1.3.29 to 1.3.30
- README.txt +6 -3
- cp-main-class.inc.php +36 -3
- form-to-email.php +1 -1
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: codepeople
|
|
3 |
Donate link: https://form2email.dwbooster.com/download
|
4 |
Tags: contact form,contact,email,contact form database,form,contact form excel,form to email,form to database,contact form builder,form to csv,form to excel,contact form csv
|
5 |
Requires at least: 3.0.5
|
6 |
-
Tested up to:
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -456,6 +456,9 @@ When you click a field already added into the contact form builder area, you can
|
|
456 |
|
457 |
== Changelog ==
|
458 |
|
|
|
|
|
|
|
459 |
= 1.3.29 =
|
460 |
* Accesibility update
|
461 |
|
@@ -1142,5 +1145,5 @@ When you click a field already added into the contact form builder area, you can
|
|
1142 |
|
1143 |
== Upgrade Notice ==
|
1144 |
|
1145 |
-
= 1.3.
|
1146 |
-
*
|
3 |
Donate link: https://form2email.dwbooster.com/download
|
4 |
Tags: contact form,contact,email,contact form database,form,contact form excel,form to email,form to database,contact form builder,form to csv,form to excel,contact form csv
|
5 |
Requires at least: 3.0.5
|
6 |
+
Tested up to: 6.0
|
7 |
Stable tag: trunk
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
456 |
|
457 |
== Changelog ==
|
458 |
|
459 |
+
= 1.3.30 =
|
460 |
+
* Misc improvements
|
461 |
+
|
462 |
= 1.3.29 =
|
463 |
* Accesibility update
|
464 |
|
1145 |
|
1146 |
== Upgrade Notice ==
|
1147 |
|
1148 |
+
= 1.3.30 =
|
1149 |
+
* Misc improvements
|
cp-main-class.inc.php
CHANGED
@@ -12,6 +12,27 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
|
|
12 |
private $include_user_data_csv = false;
|
13 |
|
14 |
public $shorttag = 'CONTACT_FORM_TO_EMAIL';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
|
16 |
function _install() {
|
17 |
global $wpdb;
|
@@ -1283,9 +1304,13 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
|
|
1283 |
|
1284 |
for ($i=0; $i < count($form_data[0]); $i++)
|
1285 |
{
|
1286 |
-
$form_data[0][$i]->title = __($form_data[0][$i]->title,'contact-form-to-email');
|
1287 |
-
@$form_data[0][$i]->userhelpTooltip = __($form_data[0][$i]->userhelpTooltip,'contact-form-to-email');
|
1288 |
-
$form_data[0][$i]->userhelp = __($form_data[0][$i]->userhelp,'contact-form-to-email');
|
|
|
|
|
|
|
|
|
1289 |
if ($form_data[0][$i]->ftype == 'fCommentArea')
|
1290 |
$form_data[0][$i]->userhelp = __($form_data[0][$i]->userhelp,'contact-form-to-email');
|
1291 |
else
|
@@ -1300,6 +1325,14 @@ class CP_ContactFormToEmail extends CP_CFTEMAIL_BaseClass {
|
|
1300 |
}
|
1301 |
|
1302 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1303 |
private function get_records_csv($formid, $form_name = "")
|
1304 |
{
|
1305 |
global $wpdb;
|
12 |
private $include_user_data_csv = false;
|
13 |
|
14 |
public $shorttag = 'CONTACT_FORM_TO_EMAIL';
|
15 |
+
|
16 |
+
protected $tags_allowed = array(
|
17 |
+
'a' => array(
|
18 |
+
'href' => array(),
|
19 |
+
'title' => array(),
|
20 |
+
'style' => array(),
|
21 |
+
'class' => array(),
|
22 |
+
),
|
23 |
+
'br' => array(),
|
24 |
+
'em' => array(),
|
25 |
+
'b' => array(),
|
26 |
+
'strong' => array(),
|
27 |
+
'img' => array(
|
28 |
+
'src' => array(),
|
29 |
+
'width' => array(),
|
30 |
+
'height' => array(),
|
31 |
+
'border' => array(),
|
32 |
+
'style' => array(),
|
33 |
+
'class' => array(),
|
34 |
+
),
|
35 |
+
);
|
36 |
|
37 |
function _install() {
|
38 |
global $wpdb;
|
1304 |
|
1305 |
for ($i=0; $i < count($form_data[0]); $i++)
|
1306 |
{
|
1307 |
+
$form_data[0][$i]->title = $this->filter_allowed_tags(__($form_data[0][$i]->title,'contact-form-to-email'));
|
1308 |
+
@$form_data[0][$i]->userhelpTooltip = $this->filter_allowed_tags(__($form_data[0][$i]->userhelpTooltip,'contact-form-to-email'));
|
1309 |
+
$form_data[0][$i]->userhelp = $this->filter_allowed_tags(__($form_data[0][$i]->userhelp,'contact-form-to-email'));
|
1310 |
+
|
1311 |
+
$form_data[0][$i]->csslayout = sanitize_text_field($form_data[0][$i]->csslayout);
|
1312 |
+
|
1313 |
+
|
1314 |
if ($form_data[0][$i]->ftype == 'fCommentArea')
|
1315 |
$form_data[0][$i]->userhelp = __($form_data[0][$i]->userhelp,'contact-form-to-email');
|
1316 |
else
|
1325 |
}
|
1326 |
|
1327 |
|
1328 |
+
public function filter_allowed_tags($content)
|
1329 |
+
{
|
1330 |
+
//$allowed_tags = wp_kses_allowed_html( 'post' );
|
1331 |
+
//return wp_kses( $content, $allowed_tags );
|
1332 |
+
return wp_kses( $content, $this->tags_allowed );
|
1333 |
+
}
|
1334 |
+
|
1335 |
+
|
1336 |
private function get_records_csv($formid, $form_name = "")
|
1337 |
{
|
1338 |
global $wpdb;
|
form-to-email.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Contact Form Email
|
4 |
Plugin URI: https://form2email.dwbooster.com/download
|
5 |
Description: Contact form that sends the data to email and also to a database list and CSV file.
|
6 |
-
Version: 1.3.
|
7 |
Author: CodePeople
|
8 |
Author URI: https://form2email.dwbooster.com
|
9 |
Text Domain: contact-form-to-email
|
3 |
Plugin Name: Contact Form Email
|
4 |
Plugin URI: https://form2email.dwbooster.com/download
|
5 |
Description: Contact form that sends the data to email and also to a database list and CSV file.
|
6 |
+
Version: 1.3.30
|
7 |
Author: CodePeople
|
8 |
Author URI: https://form2email.dwbooster.com
|
9 |
Text Domain: contact-form-to-email
|