Skip to content

Commit

Permalink
πŸ› FIX: Handle display name with special chars
Browse files Browse the repository at this point in the history
  • Loading branch information
nielslange committed Apr 4, 2021
1 parent 047f022 commit 099e5d0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions co-authors-plus.php
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,8 @@ public function ajax_suggest() {
"%s ∣ %s ∣ %s ∣ %s ∣ %s ∣ %s \n",
esc_html( $author->ID ),
esc_html( $author->user_login ),
// Ensure that author names can contain a pipe character by replacing the pipe character with the
// divides character, which will now serve as a delimiter of the author parameters. (#370)
esc_html( str_replace( '∣', '|', $author->display_name ) ),
esc_html( $author->user_email ),
esc_html( rawurldecode( $author->user_nicename ) ),
Expand Down

0 comments on commit 099e5d0

Please sign in to comment.