Skip to content
Snippets Groups Projects
Commit a2a9161e authored by Andrew A. de Laix's avatar Andrew A. de Laix
Browse files

fix quoting of url in version check.

parent 064a8d07
No related branches found
No related tags found
No related merge requests found
...@@ -26,7 +26,9 @@ ...@@ -26,7 +26,9 @@
#include "linden_common.h" #include "linden_common.h"
#include <boost/format.hpp> #include <boost/format.hpp>
#include "llhttpclient.h" #include "llhttpclient.h"
#include "llsd.h"
#include "llupdatechecker.h" #include "llupdatechecker.h"
#include "lluri.h"
class LLUpdateChecker::Implementation: class LLUpdateChecker::Implementation:
...@@ -137,8 +139,10 @@ void LLUpdateChecker::Implementation::error(U32 status, const std::string & reas ...@@ -137,8 +139,10 @@ void LLUpdateChecker::Implementation::error(U32 status, const std::string & reas
std::string LLUpdateChecker::Implementation::buildUrl(std::string const & host, std::string channel, std::string version) std::string LLUpdateChecker::Implementation::buildUrl(std::string const & host, std::string channel, std::string version)
{ {
static boost::format urlFormat("%s/version/%s/%s"); LLSD path;
urlFormat % host % channel % version; path.append("version");
return urlFormat.str(); path.append(channel);
path.append(version);
return LLURI::buildHTTP(host, path).asString();
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment