fix: do not output user-input url params directly to the response html

This commit is contained in:
Haoqun Jiang
2021-10-11 22:09:25 +08:00
parent 0266bbbfec
commit 1ad379e34f
2 changed files with 2 additions and 2 deletions

View File

@@ -63,7 +63,7 @@ function serve (req, res) {
}
} else {
res.status(404)
res.send(`Addon ${id} not found in loaded addons. Try opening a vue-cli project first?`)
res.send('Addon not found in loaded addons. Try opening a vue-cli project first?')
}
}

View File

@@ -648,7 +648,7 @@ function serveFile ({ pluginId, projectId = null, file }, res) {
}
res.status(404)
res.send(`Addon ${pluginId} not found in loaded addons. Try opening a vue-cli project first?`)
res.send('Addon not found in loaded addons. Try opening a vue-cli project first?')
}
function serve (req, res) {