summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew A. de Laix <alain@lindenlab.com>2010-10-29 11:39:07 -0700
committerAndrew A. de Laix <alain@lindenlab.com>2010-10-29 11:39:07 -0700
commita2a9161e1b2d369689d76668dcad2c0ed7752960 (patch)
tree3652312c5525cdb168e5215747d1d93c65cda099
parent064a8d079917ecd91bd6b47f5f7f353989594593 (diff)
fix quoting of url in version check.
-rw-r--r--indra/viewer_components/updater/llupdatechecker.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/indra/viewer_components/updater/llupdatechecker.cpp b/indra/viewer_components/updater/llupdatechecker.cpp
index ca2959a4ac..941210d35b 100644
--- a/indra/viewer_components/updater/llupdatechecker.cpp
+++ b/indra/viewer_components/updater/llupdatechecker.cpp
@@ -26,7 +26,9 @@
#include "linden_common.h"
#include <boost/format.hpp>
#include "llhttpclient.h"
+#include "llsd.h"
#include "llupdatechecker.h"
+#include "lluri.h"
class LLUpdateChecker::Implementation:
@@ -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)
{
- static boost::format urlFormat("%s/version/%s/%s");
- urlFormat % host % channel % version;
- return urlFormat.str();
+ LLSD path;
+ path.append("version");
+ path.append(channel);
+ path.append(version);
+ return LLURI::buildHTTP(host, path).asString();
}