From fdb4980b6815d1cd914ec31382213ba4afdbe459 Mon Sep 17 00:00:00 2001 From: Christian Hillebrand Date: Mon, 8 Mar 2021 10:48:50 +0100 Subject: [PATCH] change url scheme recognition for allowing abasurl to link autolinking is not working for abasurl as it contains not url conform characters so you would still have to link it manually but it is not sanitized anymore. --- packages/markdown/src/template-integration.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/markdown/src/template-integration.js b/packages/markdown/src/template-integration.js index 30074d777..352b998b2 100755 --- a/packages/markdown/src/template-integration.js +++ b/packages/markdown/src/template-integration.js @@ -37,7 +37,7 @@ function mySafeAttrValue(tag, name, value, cssFilter) { // then use your custom function if (tag === 'a' && name === 'href') { // only filter the value if starts with an registered url scheme - urlscheme = value.split(/:\/\//); + urlscheme = value.split(/:/); //console.log("validating "+urlscheme[0]); if(urlschemes.includes(urlscheme[0])) return value; else {