Skip to content

Commit

Permalink
escape style attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
rudlinkon committed Apr 28, 2024
1 parent b546760 commit b23ddb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions includes/Elements/Event_Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -3060,7 +3060,7 @@ public function eaelec_display_table($data, $settings){
$item_per_page = $is_paginated && !empty( $settings['eael_ec_item_per_page'] ) ? intval( $settings['eael_ec_item_per_page'] ) : 1;

?>
<table class="eael-event-calendar-table <?php echo $is_paginated ? 'ea-ec-table-paginated' : '' ?> ea-ec-table-sortable" data-items-per-page="<?php echo esc_attr( $item_per_page ); ?>">
<table class="eael-event-calendar-table <?php echo $is_paginated ? 'ea-ec-table-paginated' : ''; ?> ea-ec-table-sortable" data-items-per-page="<?php echo esc_attr( $item_per_page ); ?>">
<thead>
<tr style="display: table-row;">
<?php
Expand Down Expand Up @@ -3128,7 +3128,7 @@ public function eaelec_display_table($data, $settings){
$row_style .= "color:{$event['textColor']};";
}

$row_style = $row_style !== '' ? "style={$row_style}" : '';
$row_style = $row_style !== '' ? "style={" . esc_attr( $row_style ) . "}" : '';

$item_count ++;
echo '<tr ' . $style . ' >';
Expand Down

0 comments on commit b23ddb1

Please sign in to comment.