Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Prevents form submission in diagram preview
  • Loading branch information
davidjgraph committed May 7, 2022
1 parent becda6b commit 65f9865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/webapp/js/grapheditor/Graph.js
Expand Up @@ -1663,7 +1663,7 @@ Graph.removePasteFormatting = function(elt)
*/
Graph.sanitizeHtml = function(value, editing)
{
return DOMPurify.sanitize(value, {ADD_ATTR: ['target'],
return DOMPurify.sanitize(value, {ADD_ATTR: ['target'], FORBID_TAGS: ['form'],
ALLOWED_URI_REGEXP: /^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i});
};

Expand Down

0 comments on commit 65f9865

Please sign in to comment.