Merge pull request #7 from regru/111219-m-reflected-xss-new-fix

K-111219: Reflected XSS
This commit is contained in:
Aleksandr Gichkalov 2021-11-11 19:10:10 +04:00 committed by GitHub
commit 01639c63fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 1 deletions

2
dist/js/app.js vendored

File diff suppressed because one or more lines are too long

View File

@ -244,12 +244,31 @@ THE SOFTWARE.
// Ensure there is a default path
'$props.data.path': {
handler(data) {
data.computed = data.computed.replace(/<.+>/, '');
if (!data.computed.trim()) {
data.computed = `/var/www/${this.$props.data.domain.computed}`;
}
},
deep: true,
},
'$props.data.documentRoot': {
handler(data) {
data.computed = data.computed.replace(/<.+>/, '');
},
deep: true,
},
'$props.data.listenIpv4': {
handler(data) {
data.computed = data.computed.replace(/<.+>/, '');
},
deep: true,
},
'$props.data.listenIpv6': {
handler(data) {
data.computed = data.computed.replace(/<.+>/, '');
},
deep: true,
},
},
};
</script>

View File

@ -372,6 +372,12 @@ THE SOFTWARE.
},
deep: true,
},
'$props.data.letsEncryptCertRoot': {
handler(data) {
data.computed = data.computed.replace(/<.+>/, '');
},
deep: true,
},
},
};
</script>