Skip to content

Commit

Permalink
Escape URL for display.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterwilsoncc authored Nov 5, 2023
1 parent 90c3ca3 commit e44d29a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-simple-local-avatars.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public function get_simple_local_avatar_url( $id_or_email, $size ) {
$url = apply_filters( 'pre_simple_local_avatar_url', null, $user_id, $size, $local_avatars );

if ( is_string( $url ) ) {
return $url;
return esc_url( $url );
}

// handle "real" media
Expand Down

0 comments on commit e44d29a

Please sign in to comment.