mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-09-22 20:09:27 +08:00
K-111219: Reflected XSS на /web-tools/nginx-config-generator
This commit is contained in:
committed by
Aleksandr Gichkalov
parent
d126616c8d
commit
28c7cfc5ac
2
dist/js/app.js
vendored
2
dist/js/app.js
vendored
File diff suppressed because one or more lines are too long
@@ -29,7 +29,7 @@ export default global => {
|
|||||||
|
|
||||||
config['# ACME-challenge'] = '';
|
config['# ACME-challenge'] = '';
|
||||||
config['location ^~ /.well-known/acme-challenge/'] = {
|
config['location ^~ /.well-known/acme-challenge/'] = {
|
||||||
root: global.https.letsEncryptRoot.computed.replace(/\/+$/, ''),
|
root: global.https.letsEncryptRoot.computed.replace(/(<.+>)|(\/+$)/, ''),
|
||||||
};
|
};
|
||||||
|
|
||||||
// Done!
|
// Done!
|
||||||
|
@@ -208,6 +208,7 @@ THE SOFTWARE.
|
|||||||
watch: {
|
watch: {
|
||||||
'$props.data.domain': {
|
'$props.data.domain': {
|
||||||
handler(data) {
|
handler(data) {
|
||||||
|
data.computed = data.computed.replace(/<.+>/, '');
|
||||||
// Ignore www. if given, enable WWW subdomain
|
// Ignore www. if given, enable WWW subdomain
|
||||||
if (data.computed.startsWith('www.')) {
|
if (data.computed.startsWith('www.')) {
|
||||||
data.computed = data.computed.slice(4);
|
data.computed = data.computed.slice(4);
|
||||||
|
Reference in New Issue
Block a user