aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/lluri.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llcommon/lluri.cpp')
-rw-r--r--linden/indra/llcommon/lluri.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/linden/indra/llcommon/lluri.cpp b/linden/indra/llcommon/lluri.cpp
index 5e4dec7..536d5b9 100644
--- a/linden/indra/llcommon/lluri.cpp
+++ b/linden/indra/llcommon/lluri.cpp
@@ -6,7 +6,7 @@
6 * 6 *
7 * $LicenseInfo:firstyear=2006&license=viewergpl$ 7 * $LicenseInfo:firstyear=2006&license=viewergpl$
8 * 8 *
9 * Copyright (c) 2006-2007, Linden Research, Inc. 9 * Copyright (c) 2006-2008, Linden Research, Inc.
10 * 10 *
11 * Second Life Viewer Source Code 11 * Second Life Viewer Source Code
12 * The source code in this file ("Source Code") is provided by Linden Lab 12 * The source code in this file ("Source Code") is provided by Linden Lab
@@ -57,7 +57,9 @@ std::string LLURI::escape(const std::string& str, const std::string & allowed)
57 { 57 {
58 ostr << "%" 58 ostr << "%"
59 << std::uppercase << std::hex << std::setw(2) << std::setfill('0') 59 << std::uppercase << std::hex << std::setw(2) << std::setfill('0')
60 << static_cast<U32>(c); 60 // VWR-4010 Cannot cast to U32 because sign-extension on
61 // chars > 128 will result in FFFFFFC3 instead of F3.
62 << static_cast<S32>(static_cast<U8>(c));
61 } 63 }
62 else 64 else
63 { 65 {