Added proper escaping. Imrpoved security.

This commit is contained in:
Frank419
2024-08-29 15:18:30 +08:00
parent 7a913f5e83
commit 7f3d6330eb
10 changed files with 24 additions and 23 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ if ( !defined( 'WPINC' ) ) {
<?php echo get_avatar( $userid, 80 ); ?>
</div>
<div class="author-description">
<a class="author-link" href="<?php echo get_author_posts_url( $userid ) ?>"><?php the_author() ?></a>
<a class="author-link" href="<?php echo esc_url( get_author_posts_url( $userid ) ) ?>"><?php the_author() ?></a>
<p class="author-tagline"><?php the_author_meta( 'description' ) ?></p>
</div>
</div>