mirror of
https://github.com/outline/outline.git
synced 2026-11-28 00:09:58 +03:00
validate emoji url
This commit is contained in:
1 parent
7b143029a3
commit
44f84ff4a5
1 file changed
+2
-1
@@ -128,7 +128,8 @@ export default class Emoji extends Extension {
|
||||
return {
|
||||
node: "emoji",
|
||||
getAttrs: (tok: Token) => {
|
||||
if (tok.attrGet("data-url")) {
|
||||
const url = tok.attrGet("data-url");
|
||||
if (url && isInternalUrl(url)) {
|
||||
return {
|
||||
"data-name": tok.markup.trim(),
|
||||
"data-url": tok.attrGet("data-url"),
|
||||
|
||||
Reference in new issue
Block a user