-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
= 2.4.1, Oct 1 2021 = * Security - Fixed unescaped data output.
- Loading branch information
Showing
40 changed files
with
123 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<?php $customer = mprm_get_customer($customer_id); | ||
|
||
if (!empty($customer->telephone)) { ?> | ||
<span class="label"><b><?php _e('Phone:', 'mp-restaurant-menu'); ?></b></span> <span> <?php echo apply_filters('mprm_order_phone', $customer->telephone); ?></span> | ||
<span class="label"><b><?php _e('Phone:', 'mp-restaurant-menu'); ?></b></span> <span> <?php echo apply_filters('mprm_order_phone', esc_html( $customer->telephone )); ?></span> | ||
<br> | ||
<?php } ?> | ||
<span class="label"><b><?php _e('Email:', 'mp-restaurant-menu'); ?></b></span> <span><?php echo apply_filters('mprm_order_customer_email', $customer->email); ?></span> | ||
<span class="label"><b><?php _e('Email:', 'mp-restaurant-menu'); ?></b></span> <span><?php echo apply_filters('mprm_order_customer_email', esc_html( $customer->email )); ?></span> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
<div class="hidden mprm-data"> | ||
<span type="hidden" class="mprm-data-price"><?php echo $price ?></span> | ||
<span type="hidden" class="mprm-data-sku"><?php echo $sku ?></span> | ||
<span type="hidden" class="mprm-data-price"><?php echo esc_html( $price ); ?></span> | ||
<span type="hidden" class="mprm-data-sku"><?php echo esc_html( $sku ); ?></span> | ||
|
||
<span type="hidden" class="mprm-data-calories"><?php echo empty($nutritional['calories']['val']) ? '0' : $nutritional['calories']['val'] ?></span> | ||
<span type="hidden" class="mprm-data-cholesterol"><?php echo empty($nutritional['cholesterol']['val']) ? '0' : $nutritional['cholesterol']['val'] ?></span> | ||
<span type="hidden" class="mprm-data-fiber"><?php echo empty($nutritional['fiber']['val']) ? '0' : $nutritional['fiber']['val'] ?></span> | ||
<span type="hidden" class="mprm-data-sodium"><?php echo empty($nutritional['sodium']['val']) ? '0' : $nutritional['sodium']['val'] ?></span> | ||
<span type="hidden" class="mprm-data-carbohydrates"><?php echo empty($nutritional['carbohydrates']['val']) ? '0' : $nutritional['carbohydrates']['val'] ?></span> | ||
<span type="hidden" class="mprm-data-fat"><?php echo empty($nutritional['fat']['val']) ? '0' : $nutritional['fat']['val'] ?></span> | ||
<span type="hidden" class="mprm-data-protein"><?php echo empty($nutritional['protein']['val']) ? '0' : $nutritional['protein']['val'] ?></span> | ||
<span type="hidden" class="mprm-data-calories"><?php echo empty($nutritional['calories']['val']) ? '0' : esc_html( $nutritional['calories']['val'] ); ?></span> | ||
<span type="hidden" class="mprm-data-cholesterol"><?php echo empty($nutritional['cholesterol']['val']) ? '0' : esc_html( $nutritional['cholesterol']['val'] );?></span> | ||
<span type="hidden" class="mprm-data-fiber"><?php echo empty($nutritional['fiber']['val']) ? '0' : esc_html( $nutritional['fiber']['val'] );?></span> | ||
<span type="hidden" class="mprm-data-sodium"><?php echo empty($nutritional['sodium']['val']) ? '0' : esc_html( $nutritional['sodium']['val'] );?></span> | ||
<span type="hidden" class="mprm-data-carbohydrates"><?php echo empty($nutritional['carbohydrates']['val']) ? '0' : esc_html( $nutritional['carbohydrates']['val'] );?></span> | ||
<span type="hidden" class="mprm-data-fat"><?php echo empty($nutritional['fat']['val']) ? '0' : esc_html( $nutritional['fat']['val'] );?></span> | ||
<span type="hidden" class="mprm-data-protein"><?php echo empty($nutritional['protein']['val']) ? '0' : esc_html( $nutritional['protein']['val'] );?></span> | ||
|
||
<span type="hidden" class="mprm-data-weight"><?php echo empty($attributes['weight']['val']) ? '0' : $attributes['weight']['val'] ?></span> | ||
<span type="hidden" class="mprm-data-bulk"><?php echo empty($attributes['bulk']['val']) ? '0' : $attributes['bulk']['val'] ?></span> | ||
<span type="hidden" class="mprm-data-size"><?php echo empty($attributes['size']['val']) ? '0' : $attributes['size']['val'] ?></span> | ||
<span type="hidden" class="mprm-data-weight"><?php echo empty($attributes['weight']['val']) ? '0' : esc_html( $attributes['weight']['val'] );?></span> | ||
<span type="hidden" class="mprm-data-bulk"><?php echo empty($attributes['bulk']['val']) ? '0' : esc_html( $attributes['bulk']['val'] );?></span> | ||
<span type="hidden" class="mprm-data-size"><?php echo empty($attributes['size']['val']) ? '0' : esc_html( $attributes['size']['val'] );?></span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.