Skip to content

Commit 8121d61

Browse files
committed
fix: escape url
1 parent ede4098 commit 8121d61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

inc/shortcode.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,10 @@ function pym_shortcode( $atts = array(), $content = '', $tag = '' ) {
5252
$align,
5353
) );
5454

55-
$src = $atts['src'];
55+
$src = '';
56+
if ( ! empty( $atts['src'] ) ) {
57+
$src = esc_url_raw( $atts['src'] );
58+
}
5659

5760
ob_start();
5861

0 commit comments

Comments
 (0)