diff --git a/client/components/main/editor.js b/client/components/main/editor.js index d0beea552..1b770a8f1 100755 --- a/client/components/main/editor.js +++ b/client/components/main/editor.js @@ -275,10 +275,10 @@ function mySafeAttrValue(tag, name, value, cssFilter) { if (/^thunderlink:/ig.test(value) || /^cbthunderlink:/ig.test(value) || /^aodroplink:/ig.test(value)) { return value; } - else { - // use the default safeAttrValue function to process all non cbthunderlinks - return sanitizeXss.safeAttrValue(tag, name, value, cssFilter); - } + else { + // use the default safeAttrValue function to process all non cbthunderlinks + return sanitizeXss.safeAttrValue(tag, name, value, cssFilter); + } } else { // use the default safeAttrValue function to process it return sanitizeXss.safeAttrValue(tag, name, value, cssFilter); diff --git a/packages/markdown/src/template-integration.js b/packages/markdown/src/template-integration.js index 232d47b10..7d5dc3fbe 100755 --- a/packages/markdown/src/template-integration.js +++ b/packages/markdown/src/template-integration.js @@ -16,10 +16,10 @@ function mySafeAttrValue(tag, name, value, cssFilter) { if (/^thunderlink:/ig.test(value) || /^cbthunderlink:/ig.test(value) || /^aodroplink:/ig.test(value)) { return value; } - else { - // use the default safeAttrValue function to process all non cbthunderlinks - return sanitizeXss.safeAttrValue(tag, name, value, cssFilter); - } + else { + // use the default safeAttrValue function to process all non cbthunderlinks + return sanitizeXss.safeAttrValue(tag, name, value, cssFilter); + } } else { // use the default safeAttrValue function to process it return sanitizeXss.safeAttrValue(tag, name, value, cssFilter);