Upgrade to use C++20 (#9135)
Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
1 parent
c0b1f32889
commit
68d66c873e
23 files changed
+59
-63
No files matched your search
@@ -258,7 +258,7 @@ bool OtaHttpRequestComponent::http_get_md5_() {
|
||||
}
|
||||
|
||||
bool OtaHttpRequestComponent::validate_url_(const std::string &url) {
|
||||
if ((url.length() < 8) || (url.find("http") != 0) || (url.find("://") == std::string::npos)) {
|
||||
if ((url.length() < 8) || !url.starts_with("http") || (url.find("://") == std::string::npos)) {
|
||||
ESP_LOGE(TAG, "URL is invalid and/or must be prefixed with 'http://' or 'https://'");
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user