Merge pull request #7 from regru/111219-m-reflected-xss-new-fix
K-111219: Reflected XSS
This commit is contained in:
commit
01639c63fe
File diff suppressed because one or more lines are too long
|
@ -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>
|
||||
|
|
|
@ -372,6 +372,12 @@ THE SOFTWARE.
|
|||
},
|
||||
deep: true,
|
||||
},
|
||||
'$props.data.letsEncryptCertRoot': {
|
||||
handler(data) {
|
||||
data.computed = data.computed.replace(/<.+>/, '');
|
||||
},
|
||||
deep: true,
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
|
|
Loading…
Reference in New Issue