reformat message

This commit is contained in:
zzz
2018-03-15 15:46:40 +00:00
parent 1050fc7786
commit 1de82a6801

View File

@ -89,9 +89,9 @@ public class HostCheckHandler extends GzipHandler
Log log = _context.logManager().getLog(HostCheckHandler.class);
host = DataHelper.stripHTML(getHost(host));
String s = "Console request denied.\n" +
" To allow access using the hostname \"" + host + "\", add the line \"" +
RouterConsoleRunner.PROP_ALLOWED_HOSTS + '=' + host +
"\" to advanced configuration and restart.";
" To allow access using the hostname \"" + host + "\",\n" +
" add the line \"" + RouterConsoleRunner.PROP_ALLOWED_HOSTS + '=' + host + "\"\n" +
" to advanced configuration and restart.";
log.logAlways(Log.WARN, s);
httpResponse.sendError(403, s);
baseRequest.setHandled(true);