No public description
PiperOrigin-RevId: 830503652
diff --git a/MODULE.bazel b/MODULE.bazel
index 5c9f9b2..982bf3b 100644
--- a/MODULE.bazel
+++ b/MODULE.bazel
@@ -46,6 +46,6 @@
http_archive(
name = "com_google_googleurl",
- sha256 = "1d2c507cc31e109ecb41ba1fe766f5ff0f5974c3ba8d0919b3d22668f7e89305", # Last updated 2023-07-06
- urls = ["https://storage.googleapis.com/quiche-envoy-integration/googleurl-5573f9aa120f3fbd378ca1b2565bbf7d223cd542.tar.gz"],
+ sha256 = "515ed1c5ab441af62bb6d3bda46463c588c5dd79f4449e275caa12d473fdd6c8", # Last updated 2023-07-06
+ urls = ["https://storage.googleapis.com/quiche-envoy-integration/googleurl-94ff147fe0b96b4cca5d6d316b9af6210c0b8051.tar.gz"],
)
diff --git a/quiche/common/platform/default/quiche_platform_impl/quiche_url_utils_impl.cc b/quiche/common/platform/default/quiche_platform_impl/quiche_url_utils_impl.cc
index 686f631..8e3f7ec 100644
--- a/quiche/common/platform/default/quiche_platform_impl/quiche_url_utils_impl.cc
+++ b/quiche/common/platform/default/quiche_platform_impl/quiche_url_utils_impl.cc
@@ -30,7 +30,9 @@
const std::string& value = pair.second;
std::string name_input = absl::StrCat("{", name, "}");
url::RawCanonOutputT<char> canon_value;
- url::EncodeURIComponent(value.c_str(), value.length(), &canon_value);
+ url::EncodeURIComponent(
+ value,
+ &canon_value);
std::string encoded_value(canon_value.data(), canon_value.length());
int num_replaced =
absl::StrReplaceAll({{name_input, encoded_value}}, &result);
@@ -60,9 +62,9 @@
std::optional<std::string> AsciiUrlDecodeImpl(absl::string_view input) {
std::string input_encoded = std::string(input);
url::RawCanonOutputW<1024> canon_output;
- url::DecodeURLEscapeSequences(input_encoded.c_str(), input_encoded.length(),
- url::DecodeURLMode::kUTF8,
- &canon_output);
+ url::DecodeURLEscapeSequences(
+ input_encoded, url::DecodeURLMode::kUTF8,
+ &canon_output);
std::string output;
output.reserve(canon_output.length());
for (int i = 0; i < canon_output.length(); i++) {