mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 20:55:28 +00:00
Merge pull request #1356 from pi-hole/tweak/hostname_error_message
Add support for HOSTNAME diagnostics message
This commit is contained in:
@@ -57,6 +57,22 @@ function renderMessage(data, type, row) {
|
||||
"</pre> to get the group configuration for this client."
|
||||
);
|
||||
|
||||
case "HOSTNAME":
|
||||
var hint = new Array(row.blob2 + row.message.length + 3).join(" ");
|
||||
return (
|
||||
"Hostname contains invalid character <code>" +
|
||||
decodeURIComponent(escape(row.blob1))[row.blob2] +
|
||||
"</code>:<pre>" +
|
||||
hint +
|
||||
"↓\n" +
|
||||
row.message +
|
||||
": " +
|
||||
decodeURIComponent(escape(row.blob1)) +
|
||||
"\n" +
|
||||
hint +
|
||||
"↑</pre>"
|
||||
);
|
||||
|
||||
default:
|
||||
return "Unknown message type<pre>" + JSON.stringify(row) + "</pre>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user