Skip to content

Commit f0c9778

Browse files
author
Marco Pereirinha
committed
Escape the strings
1 parent 97c2d62 commit f0c9778

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

php/class-special-offer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ public function filtered_settings( $settings ) {
7575
'url' => static function () {
7676
$args = array(
7777
'tf_360017815680' => 'help_with_plans',
78-
'tf_subject' => __( 'Request to Purchase the Small Plan', 'cloudinary' ),
79-
'tf_description' => __( "Hello,<br><br>I'm interested in purchasing the Small plan for $29. Could you please provide me with the next steps to complete the purchase?<br><br>Thank you!", 'cloudinary' ),
78+
'tf_subject' => esc_attr( __( 'Request to Purchase the Small Plan', 'cloudinary' ) ),
79+
'tf_description' => esc_attr( __( "Hello,<br><br>I'm interested in purchasing the Small plan for $29. Could you please provide me with the next steps to complete the purchase?<br><br>Thank you!", 'cloudinary' ) ),
8080
);
8181
return Utils::get_support_link( $args );
8282
},

php/class-utils.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -463,12 +463,14 @@ public static function get_support_link( $args = array() ) {
463463
'tf_22246877' => $user->display_name,
464464
'tf_360007219560' => $plugin->components['connect']->get_cloud_name(),
465465
'tf_360017815680' => 'other_help_needed',
466-
'tf_subject' => sprintf(
467-
// translators: The plugin version.
468-
__( 'I need help with Cloudinary WordPress plugin version %s', 'cloudinary' ),
469-
$plugin->version
466+
'tf_subject' => esc_attr(
467+
sprintf(
468+
// translators: The plugin version.
469+
__( 'I need help with Cloudinary WordPress plugin version %s', 'cloudinary' ),
470+
$plugin->version
471+
)
470472
),
471-
'tf_description' => __( 'Please, provide more details on your request, and if possible, attach a System Report', 'cloudinary' ),
473+
'tf_description' => esc_attr( __( 'Please, provide more details on your request, and if possible, attach a System Report', 'cloudinary' ) ),
472474
);
473475

474476
$args = wp_parse_args(

0 commit comments

Comments
 (0)