mirror of
https://github.com/wekan/wekan.git
synced 2025-12-17 07:50:12 +01:00
fixed issue #5885
This commit is contained in:
parent
836226a8d3
commit
ab4e2d1ed6
2 changed files with 17 additions and 57 deletions
|
|
@ -116,8 +116,8 @@ BlazeComponent.extendComponent({
|
||||||
].join('|');
|
].join('|');
|
||||||
const badPatterns = new RegExp(
|
const badPatterns = new RegExp(
|
||||||
`(?:${[
|
`(?:${[
|
||||||
`<(${badTags})\s*[^>][\s\S]*?<\/\1>`,
|
`<(${badTags})\\s*[^>][\\s\\S]*?<\\/\\1>`,
|
||||||
`<(${badTags})[^>]*?\/>`,
|
`<(${badTags})[^>]*?\\/>`,
|
||||||
].join('|')})`,
|
].join('|')})`,
|
||||||
'gi',
|
'gi',
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -192,55 +192,19 @@ BlazeComponent.extendComponent({
|
||||||
this.setLoading(true);
|
this.setLoading(true);
|
||||||
$('li').removeClass('has-error');
|
$('li').removeClass('has-error');
|
||||||
|
|
||||||
const productName = $('#product-name')
|
const productName = ($('#product-name').val() || '').trim();
|
||||||
.val()
|
const customLoginLogoImageUrl = ($('#custom-login-logo-image-url').val() || '').trim();
|
||||||
.trim();
|
const customLoginLogoLinkUrl = ($('#custom-login-logo-link-url').val() || '').trim();
|
||||||
const customLoginLogoImageUrl = $('#custom-login-logo-image-url')
|
const customHelpLinkUrl = ($('#custom-help-link-url').val() || '').trim();
|
||||||
.val()
|
const textBelowCustomLoginLogo = ($('#text-below-custom-login-logo').val() || '').trim();
|
||||||
.trim();
|
const automaticLinkedUrlSchemes = ($('#automatic-linked-url-schemes').val() || '').trim();
|
||||||
const customLoginLogoLinkUrl = $('#custom-login-logo-link-url')
|
const customTopLeftCornerLogoImageUrl = ($('#custom-top-left-corner-logo-image-url').val() || '').trim();
|
||||||
.val()
|
const customTopLeftCornerLogoLinkUrl = ($('#custom-top-left-corner-logo-link-url').val() || '').trim();
|
||||||
.trim();
|
const customTopLeftCornerLogoHeight = ($('#custom-top-left-corner-logo-height').val() || '').trim();
|
||||||
const customHelpLinkUrl = $('#custom-help-link-url')
|
|
||||||
.val()
|
|
||||||
.trim();
|
|
||||||
const textBelowCustomLoginLogo = $('#text-below-custom-login-logo')
|
|
||||||
.val()
|
|
||||||
.trim();
|
|
||||||
const automaticLinkedUrlSchemes = $('#automatic-linked-url-schemes')
|
|
||||||
.val()
|
|
||||||
.trim();
|
|
||||||
const customTopLeftCornerLogoImageUrl = $(
|
|
||||||
'#custom-top-left-corner-logo-image-url',
|
|
||||||
)
|
|
||||||
.val()
|
|
||||||
.trim();
|
|
||||||
const customTopLeftCornerLogoLinkUrl = $(
|
|
||||||
'#custom-top-left-corner-logo-link-url',
|
|
||||||
)
|
|
||||||
.val()
|
|
||||||
.trim();
|
|
||||||
const customTopLeftCornerLogoHeight = $(
|
|
||||||
'#custom-top-left-corner-logo-height',
|
|
||||||
)
|
|
||||||
.val()
|
|
||||||
.trim();
|
|
||||||
|
|
||||||
const oidcBtnText = $(
|
const oidcBtnText = ($('#oidcBtnTextvalue').val() || '').trim();
|
||||||
'#oidcBtnTextvalue',
|
const mailDomainName = ($('#mailDomainNamevalue').val() || '').trim();
|
||||||
)
|
const legalNotice = ($('#legalNoticevalue').val() || '').trim();
|
||||||
.val()
|
|
||||||
.trim();
|
|
||||||
const mailDomainName = $(
|
|
||||||
'#mailDomainNamevalue',
|
|
||||||
)
|
|
||||||
.val()
|
|
||||||
.trim();
|
|
||||||
const legalNotice = $(
|
|
||||||
'#legalNoticevalue',
|
|
||||||
)
|
|
||||||
.val()
|
|
||||||
.trim();
|
|
||||||
const hideLogoChange = $('input[name=hideLogo]:checked').val() === 'true';
|
const hideLogoChange = $('input[name=hideLogo]:checked').val() === 'true';
|
||||||
const hideCardCounterListChange = $('input[name=hideCardCounterList]:checked').val() === 'true';
|
const hideCardCounterListChange = $('input[name=hideCardCounterList]:checked').val() === 'true';
|
||||||
const hideBoardMemberListChange = $('input[name=hideBoardMemberList]:checked').val() === 'true';
|
const hideBoardMemberListChange = $('input[name=hideBoardMemberList]:checked').val() === 'true';
|
||||||
|
|
@ -248,13 +212,9 @@ BlazeComponent.extendComponent({
|
||||||
$('input[name=displayAuthenticationMethod]:checked').val() === 'true';
|
$('input[name=displayAuthenticationMethod]:checked').val() === 'true';
|
||||||
const defaultAuthenticationMethod = $('#defaultAuthenticationMethod').val();
|
const defaultAuthenticationMethod = $('#defaultAuthenticationMethod').val();
|
||||||
const accessibilityPageEnabled = $('input[name=accessibilityPageEnabled]:checked').val() === 'true';
|
const accessibilityPageEnabled = $('input[name=accessibilityPageEnabled]:checked').val() === 'true';
|
||||||
const accessibilityTitle = $('#accessibility-title')
|
const accessibilityTitle = ($('#accessibility-title').val() || '').trim();
|
||||||
.val()
|
const accessibilityContent = ($('#accessibility-content').val() || '').trim();
|
||||||
.trim();
|
const spinnerName = ($('#spinnerName').val() || '').trim();
|
||||||
const accessibilityContent = $('#accessibility-content')
|
|
||||||
.val()
|
|
||||||
.trim();
|
|
||||||
const spinnerName = $('#spinnerName').val();
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Settings.update(ReactiveCache.getCurrentSetting()._id, {
|
Settings.update(ReactiveCache.getCurrentSetting()._id, {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue