summaryrefslogtreecommitdiff
path: root/absl/strings/escaping.cc
diff options
context:
space:
mode:
authorGravatar Abseil Team <absl-team@google.com>2022-07-18 16:05:19 -0700
committerGravatar Copybara-Service <copybara-worker@google.com>2022-07-18 16:06:04 -0700
commite633c7110967b6d3e72c34266cd18a6db4ccfe38 (patch)
treee8808e9ab2b8f6fcbc30317475d17768ba34d5d9 /absl/strings/escaping.cc
parent65ac1e611c45843482ae74e7291c578aa7881f5b (diff)
Use HTTPS RFC URLs, which work regardless of the browser's locale.
PiperOrigin-RevId: 461737981 Change-Id: Iefb1d703725f0a258b5ee315c55277b261b75418
Diffstat (limited to 'absl/strings/escaping.cc')
-rw-r--r--absl/strings/escaping.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/absl/strings/escaping.cc b/absl/strings/escaping.cc
index 18b20b83..4dc69702 100644
--- a/absl/strings/escaping.cc
+++ b/absl/strings/escaping.cc
@@ -773,7 +773,8 @@ bool Base64UnescapeInternal(const char* src, size_t slen, String* dest,
const signed char* unbase64) {
// Determine the size of the output string. Base64 encodes every 3 bytes into
// 4 characters. any leftover chars are added directly for good measure.
- // This is documented in the base64 RFC: http://tools.ietf.org/html/rfc3548
+ // This is documented in the base64 RFC:
+ // https://datatracker.ietf.org/doc/html/rfc3548
const size_t dest_len = 3 * (slen / 4) + (slen % 4);
strings_internal::STLStringResizeUninitialized(dest, dest_len);
@@ -876,8 +877,8 @@ std::string Utf8SafeCHexEscape(absl::string_view src) {
// WebSafeBase64Escape() - Google's variation of base64 encoder
//
// Check out
-// http://tools.ietf.org/html/rfc2045 for formal description, but what we
-// care about is that...
+// https://datatracker.ietf.org/doc/html/rfc2045 for formal description, but
+// what we care about is that...
// Take the encoded stuff in groups of 4 characters and turn each
// character into a code 0 to 63 thus:
// A-Z map to 0 to 25