Skip to content

Commit 941cd3d

Browse files
release: fixes
- Enhanced security
2 parents fe988f4 + 5dde5f9 commit 941cd3d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

obfx_modules/elementor-extra-widgets/widgets/elementor/posts-grid.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1874,9 +1874,9 @@ protected function renderMetaGridCategories() {
18741874
}
18751875
?>
18761876
<span class="obfx-grid-categories-item">
1877-
<a href="<?php echo get_category_link( $category->term_id ); ?>"
1878-
title="<?php echo $category->name; ?>">
1879-
<?php echo $category->name; ?>
1877+
<a href="<?php echo esc_url( get_category_link( $category->term_id ) ); ?>"
1878+
title="<?php echo esc_attr( $category->name ); ?>">
1879+
<?php echo esc_html( $category->name ); ?>
18801880
</a>
18811881
</span>
18821882
<?php
@@ -1909,8 +1909,8 @@ protected function renderMetaGridTags() {
19091909
}
19101910
?>
19111911
<span class="obfx-grid-tags-item">
1912-
<a href="<?php echo get_tag_link( $tag->term_id ); ?>" title="<?php echo $tag->name; ?>">
1913-
<?php echo $tag->name; ?>
1912+
<a href="<?php echo esc_url( get_tag_link( $tag->term_id ) ); ?>" title="<?php echo esc_attr( $tag->name ); ?>">
1913+
<?php echo esc_html( $tag->name ); ?>
19141914
</a>
19151915
</span>
19161916
<?php

0 commit comments

Comments
 (0)