mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01:00
Revert "Re-enables custom schemes auto linking" https://github.com/wekan/wekan/pull/4059 because Markdown links did not work, commented out some code.
Thanks to mfilser and xet7 ! Related https://github.com/wekan/wekan/pull/4059
This commit is contained in:
parent
5af4386a0f
commit
a3d41c560b
2 changed files with 2 additions and 9 deletions
|
|
@ -9,6 +9,7 @@ var Markdown = require('markdown-it')({
|
|||
|
||||
import markdownItMermaid from "@wekanteam/markdown-it-mermaid";
|
||||
|
||||
/*
|
||||
|
||||
// Static URL Scheme Listing
|
||||
var urlschemes = [
|
||||
|
|
@ -22,10 +23,6 @@ var urlschemes = [
|
|||
"mailspring"
|
||||
];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// Better would be a field in the admin backend to set this dynamically
|
||||
// instead of putting all known or wanted url schemes here hard into code
|
||||
// but i was not able to access those settings
|
||||
|
|
@ -38,6 +35,7 @@ for(var i=0; i<urlschemes.length;i++){
|
|||
}
|
||||
|
||||
|
||||
|
||||
// build fitting regex
|
||||
var regex = RegExp('^(' + urlschemes.join('|') + '):', 'gim');
|
||||
|
||||
|
|
@ -70,9 +68,6 @@ DOMPurify.addHook('afterSanitizeAttributes', function (node) {
|
|||
});
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
// Additional safeAttrValue function to allow for other specific protocols
|
||||
// See https://github.com/leizongmin/js-xss/issues/52#issuecomment-241354114
|
||||
function mySafeAttrValue(tag, name, value, cssFilter) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue