Skip to content

Commit 6fb4e8d

Browse files
authored
Merge pull request #41 from brainstormforce/bb-card-issue
Improvement in the code for Card
2 parents 0513a45 + 0f03112 commit 6fb4e8d

File tree

4 files changed

+19
-13
lines changed

4 files changed

+19
-13
lines changed

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Cards for Beaver Builder #
2-
**Contributors:** [pratikchaskar](https://profiles.wordpress.org/pratikchaskar)
2+
**Contributors:** [brainstormforce](https://profiles.wordpress.org/brainstormforce), [pratikchaskar](https://profiles.wordpress.org/pratikchaskar)
33
**Donate link:** https://www.paypal.me/BrainstormForce
44
**Requires at least:** 4.4
55
**Tags:** beaver builder, page builder plugin, bootstrap cards, cards, bootstrap, drag and drop cards, bb bootstrap, Cards for Beaver Builder
6-
**Stable tag:** 1.1.3
6+
**Stable tag:** 1.1.4
77
**Tested up to:** 6.5
88
**License:** GPLv2 or later
99
**License URI:** http://www.gnu.org/licenses/gpl-2.0.html
@@ -88,6 +88,9 @@ Visit our website to know more about the top WordPress products and services we
8888

8989
## Changelog ##
9090

91+
### 1.1.4 ###
92+
This update addressed a security bug. Props to Wordfence for privately reporting it privately to our team. Please make sure you are using the latest version on your website.
93+
9194
### 1.1.3 ###
9295
* Security Fix: Hardened the security of the plugin. Props: Wordfence.
9396

bb-bootstrap-cards-module/includes/frontend.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
$attrs = $module->get_attributes();
1919
?>
2020
<?php if ( 'yes' == $settings->photo_hyperlink && 'link' == $settings->card_btn_type ) : ?>
21-
<a href="<?php echo $settings->link_field; ?>" target="<?php echo $settings->link_target; ?>" itemprop="url">
21+
<a href="<?php echo esc_url( $settings->link_field ); ?>" target="<?php echo esc_attr( $settings->link_target ); ?>" itemprop="url">
2222
<?php endif; ?>
2323
<?php if ( 'yes' == $settings->photo_hyperlink && 'button' == $settings->card_btn_type ) : ?>
24-
<a href="<?php echo $settings->btn_link; ?>" target="<?php echo $settings->btn_link_target; ?>" itemprop="url">
24+
<a href="<?php echo esc_url( $settings->btn_link ); ?>" target="<?php echo esc_attr( $settings->btn_link_target ); ?>" itemprop="url">
2525
<?php endif; ?>
26-
<img class="<?php echo $classes; ?>" src="<?php echo $src; ?>" alt="<?php echo $alt; ?>" itemprop="image" <?php echo $attrs; ?> />
26+
<img class="<?php echo esc_attr( $classes ); ?>" src="<?php echo esc_url( $src ); ?>" alt="<?php echo esc_attr( $alt ); ?>" itemprop="image" <?php echo $attrs; ?> />
2727
<?php if ( 'yes' == $settings->photo_hyperlink && 'none' != $settings->card_btn_type ) : ?>
2828
</a>
2929
<?php endif; ?>
@@ -34,7 +34,7 @@
3434
<!--Card content-->
3535
<div class="bb_boot_card_block">
3636
<!--Title-->
37-
<<?php echo $settings->tag; ?> class="bb_boot_card_title"><?php echo $settings->card_title; ?></<?php echo $settings->tag; ?>>
37+
<<?php echo esc_attr( $settings->tag ); ?> class="bb_boot_card_title"><?php echo esc_html( $settings->card_title ); ?></<?php echo esc_attr( $settings->tag ); ?>>
3838
<!--/.Title-->
3939
<!--Text-->
4040
<div class="bb_boot_card_text">
@@ -44,11 +44,11 @@
4444
<!--Link-->
4545
<?php if ( 'link' == $settings->card_btn_type ) { ?>
4646
<a class="bb_boot_card_link" href="<?php echo esc_url( $settings->link_field ); ?>" target="<?php echo esc_attr( $settings->link_target ); ?>">
47-
<?php echo $settings->card_btn_text; ?>
47+
<?php echo esc_html( $settings->card_btn_text ); ?>
4848
</a>
4949
<?php } elseif ( 'button' == $settings->card_btn_type ) { ?>
5050
<a class="bb_boot_card_link_button" href="<?php echo esc_url( $settings->btn_link ); ?>" target="<?php echo esc_attr( $settings->btn_link_target ); ?>">
51-
<span class="bb_boot_button"><?php echo $settings->btn_text; ?></span>
51+
<span class="bb_boot_button"><?php echo esc_html( $settings->btn_text ); ?></span>
5252
</a>
5353
<?php } ?>
5454
<!--/.Link-->

bb-bootstrap-cards.php.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
* Plugin Name: Cards for Beaver Builder
44
* Plugin URI: https://www.brainstormforce.com/
55
* Description: This is a plugin for creating Awesome Bootstrap Card.
6-
* Author: Pratik Chaskar
7-
* Author URI: https://pratikchaskar.com/
6+
* Author: Brainstorm Force, Pratik Chaskar
7+
* Author URI: https://brainstormforce.com/
88
* Text Domain: bb-bootstrap-cards
9-
* Version: 1.1.3
9+
* Version: 1.1.4
1010
*
1111
* @package BB-Bootstrap-Cards
1212
*/

readme.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
=== Cards for Beaver Builder ===
2-
Contributors: pratikchaskar
2+
Contributors: brainstormforce, pratikchaskar
33
Donate link: https://www.paypal.me/BrainstormForce
44
Requires at least: 4.4
55
Tags: beaver builder, page builder plugin, bootstrap cards, cards, bootstrap, drag and drop cards, bb bootstrap, Cards for Beaver Builder
6-
Stable tag: 1.1.3
6+
Stable tag: 1.1.4
77
Tested up to: 6.5
88
License: GPLv2 or later
99
License URI: http://www.gnu.org/licenses/gpl-2.0.html
@@ -88,6 +88,9 @@ Visit our website to know more about the top WordPress products and services we
8888

8989
== Changelog ==
9090

91+
= 1.1.4 =
92+
This update addressed a security bug. Props to Wordfence for privately reporting it privately to our team. Please make sure you are using the latest version on your website.
93+
9194
= 1.1.3 =
9295
* Security Fix: Hardened the security of the plugin. Props: Wordfence.
9396

0 commit comments

Comments
 (0)