Skip to content

Commit

Permalink
Don't allow custom emoji pseudo-links in EditLink.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Aug 15, 2022
1 parent 9604836 commit 2f5d5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/widgets/input_fields.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3633,7 +3633,7 @@ void InputField::finishMarkdownTagChange(
}

bool InputField::IsValidMarkdownLink(QStringView link) {
return ::Ui::IsValidMarkdownLink(link);
return ::Ui::IsValidMarkdownLink(link) && !::Ui::IsCustomEmojiLink(link);
}

bool InputField::IsCustomEmojiLink(QStringView link) {
Expand Down

0 comments on commit 2f5d5e0

Please sign in to comment.