From 925e9f71870ae0a2c1e6490e00c6a9f79237dc45 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Wed, 3 Jul 2019 23:38:57 +0200 Subject: [PATCH] update: try to fix online update; replace spaces in url with %20 Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/ceb766e556b993bffde2f3b858e9d2371975470b Author: vanhofen Date: 2019-07-03 (Wed, 03 Jul 2019) Origin message was: ------------------ - update: try to fix online update; replace spaces in url with %20 --- src/gui/update.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/update.cpp b/src/gui/update.cpp index c661e6d35..0c2cd4cc9 100644 --- a/src/gui/update.cpp +++ b/src/gui/update.cpp @@ -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()); } }