Skip to content

Commit 8a56586

Browse files
committed
Escaping Backlink URL
1 parent eecbafd commit 8a56586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tootpress_blog.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ function tootpress_paint_elephant( $instance, $account, $mastodon_id, $backlink)
139139

140140
if($backlink) {
141141
$elephant_html.='<a href="';
142-
$elephant_html.=$url;
142+
$elephant_html.=esc_url($url);
143143
$elephant_html.='" class="toot-backlink"/>';
144144
}
145145

0 commit comments

Comments
 (0)