Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9234ff00de |
@@ -1750,8 +1750,8 @@ static int cmd_handle(const char *cmd, char *reply, size_t reply_size)
|
||||
/* OTA <url> */
|
||||
if (strncmp(cmd, "OTA ", 4) == 0) {
|
||||
const char *url = cmd + 4;
|
||||
if (strncmp(url, "http://", 7) != 0) {
|
||||
snprintf(reply, reply_size, "ERR OTA url must start with http://");
|
||||
if (strncmp(url, "http://", 7) != 0 && strncmp(url, "https://", 8) != 0) {
|
||||
snprintf(reply, reply_size, "ERR OTA url must start with http:// or https://");
|
||||
return strlen(reply);
|
||||
}
|
||||
if (s_ota_in_progress) {
|
||||
|
||||
Reference in New Issue
Block a user