forked from svrjs/svrjs
Fix server string not displaying in the bad request response.
This commit is contained in:
parent
60615cdb5a
commit
314cf247d4
1 changed files with 23 additions and 24 deletions
|
@ -288,16 +288,15 @@ function clientErrorHandler(err, socket) {
|
||||||
)
|
)
|
||||||
.replace(
|
.replace(
|
||||||
/{server}/g,
|
/{server}/g,
|
||||||
"" +
|
(
|
||||||
(
|
config.generateServerString() +
|
||||||
config.generateServerString() +
|
(!config.exposeModsInErrorPages || extName == undefined
|
||||||
(!config.exposeModsInErrorPages || extName == undefined
|
? ""
|
||||||
? ""
|
: " " + extName)
|
||||||
: " " + extName)
|
)
|
||||||
)
|
.replace(/&/g, "&")
|
||||||
.replace(/&/g, "&")
|
.replace(/</g, "<")
|
||||||
.replace(/</g, "<")
|
.replace(/>/g, ">"),
|
||||||
.replace(/>/g, ">"),
|
|
||||||
)
|
)
|
||||||
.replace(
|
.replace(
|
||||||
/{contact}/g,
|
/{contact}/g,
|
||||||
|
@ -341,16 +340,15 @@ function clientErrorHandler(err, socket) {
|
||||||
)
|
)
|
||||||
.replace(
|
.replace(
|
||||||
/{server}/g,
|
/{server}/g,
|
||||||
"" +
|
(
|
||||||
(
|
config.generateServerString() +
|
||||||
config.generateServerString() +
|
(!config.exposeModsInErrorPages || extName == undefined
|
||||||
(!config.exposeModsInErrorPages || extName == undefined
|
? ""
|
||||||
? ""
|
: " " + extName)
|
||||||
: " " + extName)
|
)
|
||||||
)
|
.replace(/&/g, "&")
|
||||||
.replace(/&/g, "&")
|
.replace(/</g, "<")
|
||||||
.replace(/</g, "<")
|
.replace(/>/g, ">"),
|
||||||
.replace(/>/g, ">"),
|
|
||||||
)
|
)
|
||||||
.replace(
|
.replace(
|
||||||
/{contact}/g,
|
/{contact}/g,
|
||||||
|
@ -409,10 +407,11 @@ function clientErrorHandler(err, socket) {
|
||||||
)
|
)
|
||||||
.replace(
|
.replace(
|
||||||
/{server}/g,
|
/{server}/g,
|
||||||
(config.generateServerString() +
|
(
|
||||||
(config.exposeModsInErrorPages || extName == undefined)
|
config.generateServerString() +
|
||||||
? ""
|
(!config.exposeModsInErrorPages || extName == undefined
|
||||||
: " " + extName
|
? ""
|
||||||
|
: " " + extName)
|
||||||
)
|
)
|
||||||
.replace(/&/g, "&")
|
.replace(/&/g, "&")
|
||||||
.replace(/</g, "<")
|
.replace(/</g, "<")
|
||||||
|
|
Reference in a new issue