Escape profile

This commit is contained in:
Alexander Agnarson 2021-02-24 14:53:03 +01:00
parent 43b75f6464
commit 4ff88f7409

View file

@ -17,14 +17,14 @@
<div id="profile-image">
<div class="profile-skew"><div class="profile-skew-inner"></div></div>
<div class="profile-skew-bottom"><div class="profile-skew-inner-bottom"></div></div>
<img src="<?php echo get_theme_mod('profile-image'); ?>" alt="" />
<img src="<?php echo esc_html( get_theme_mod('profile-image') ); ?>" alt="" />
</div>
<?php endif; ?>
<?php if ( get_theme_mod('profile-name') ): ?>
<div id="profile-name"><?php echo get_theme_mod('profile-name'); ?></div>
<div id="profile-name"><?php echo esc_html( get_theme_mod('profile-name') ); ?></div>
<?php endif; ?>
<?php if ( get_theme_mod('profile-description') ): ?>
<div id="profile-description"><?php echo get_theme_mod('profile-description'); ?></div>
<div id="profile-description"><?php echo wp_kses_post( get_theme_mod('profile-description') ); ?></div>
<?php endif; ?>
</div>
<?php endif; ?>