mirror of
https://github.com/koichixD/uptime-kuma.git
synced 2026-09-04 17:23:21 +00:00
[autofix.ci] apply automated fixes
This commit is contained in:
@@ -2112,7 +2112,7 @@ message HealthCheckResponse {
|
||||
}
|
||||
|
||||
// Validate URL field input for various monitors
|
||||
if (["http", "keyword", "json-query", "websocket-upgrade", "real-browser"].includes(this.monitor.type) && this.monitor.url) {
|
||||
if ([ "http", "keyword", "json-query", "websocket-upgrade", "real-browser" ].includes(this.monitor.type) && this.monitor.url) {
|
||||
try {
|
||||
const url = new URL(this.monitor.url);
|
||||
// Browser can encode *.hostname.com to %2A.hostname.com
|
||||
|
||||
Reference in New Issue
Block a user