mirror of
https://github.com/wekan/wekan.git
synced 2025-04-22 04:57:07 -04:00
Merge pull request #3641 from chrisi51/master
change url scheme recognition for allowing abasurl to link
This commit is contained in:
commit
77372ccce1
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue