update: try to fix online update; replace spaces in url with %20

Origin commit data
------------------
Commit: ceb766e556
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-07-03 (Wed, 03 Jul 2019)

Origin message was:
------------------
- update: try to fix online update; replace spaces in url with %20
This commit is contained in:
vanhofen
2019-07-03 23:38:57 +02:00
parent 2728195b9f
commit 925e9f7187

View File

@@ -157,6 +157,8 @@ void CFlashUpdate::update_php(std::string &url, const char* type)
url += g_info.hw_caps->boxname;
url += "&chip_type=" + to_string(cs_get_chip_type());
url += "&image_type=" + (std::string)type;
url = str_replace(" ", "%20", url);
printf("[update_php] url %s\n", url.c_str());
}
}