[net] xsrftoken: create no padding base64 string by RawURLEncoding.

14 views
Skip to first unread message

Gerrit Bot (Gerrit)

unread,
Jul 20, 2024, 4:32:04 PM7/20/24
to goph...@pubsubhelper.golang.org, Chen Su, golang-co...@googlegroups.com

Gerrit Bot has uploaded the change for review

Commit message

xsrftoken: create no padding base64 string by RawURLEncoding.

The XSRF token generation function creates the padded base64 string by `base64.URLEncoding`, then removes the padding. It is equivalent to the `base64.RawURLEncoding` but with more costs.
Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
GitHub-Last-Rev: a8263b543cc3c779c7e20ba143994d638e3b7143
GitHub-Pull-Request: golang/net#217

Change diff

diff --git a/xsrftoken/xsrf.go b/xsrftoken/xsrf.go
index 3ca5d5b..e808e6d 100644
--- a/xsrftoken/xsrf.go
+++ b/xsrftoken/xsrf.go
@@ -45,10 +45,9 @@
h := hmac.New(sha1.New, []byte(key))
fmt.Fprintf(h, "%s:%s:%d", clean(userID), clean(actionID), milliTime)

- // Get the padded base64 string then removing the padding.
+ // Get the no padding base64 string.
tok := string(h.Sum(nil))
- tok = base64.URLEncoding.EncodeToString([]byte(tok))
- tok = strings.TrimRight(tok, "=")
+ tok = base64.RawURLEncoding.EncodeToString([]byte(tok))

return fmt.Sprintf("%s:%d", tok, milliTime)
}

Change information

Files:
  • M xsrftoken/xsrf.go
Change size: XS
Delta: 1 file changed, 2 insertions(+), 3 deletions(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: net
Gerrit-Branch: master
Gerrit-Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
Gerrit-Change-Number: 599895
Gerrit-PatchSet: 1
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
Gerrit-CC: Chen Su <gho...@gmail.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Gopher Robot (Gerrit)

unread,
Jul 20, 2024, 4:32:09 PM7/20/24
to Gerrit Bot, Chen Su, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Gopher Robot added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Gopher Robot . unresolved

I spotted some possible problems.

These findings are based on simple heuristics. If a finding appears wrong, briefly reply here saying so. Otherwise, please address any problems and update the GitHub PR. When complete, mark this comment as 'Done' and click the [blue 'Reply' button](https://go.dev/wiki/GerritBot#i-left-a-reply-to-a-comment-in-gerrit-but-no-one-but-me-can-see-it) above.

Possible problems detected:
1. The commit title should not end with a period.
2. Lines in the commit message should be wrapped at ~76 characters unless needed for things like URLs or tables. You have a 187 character line.
3. You usually need to reference a bug number for all but trivial or cosmetic fixes. For the net repo, the format is usually 'Fixes golang/go#12345' or 'Updates golang/go#12345' at the end of the commit message. Should you have a bug reference?

The commit title and commit message body come from the GitHub PR title and description, and must be edited in the GitHub web interface (not via git). For instructions, see [here](https://go.dev/wiki/GerritBot/#how-does-gerritbot-determine-the-final-commit-message). For guidelines on commit messages for the Go project, see [here](https://go.dev/doc/contribute#commit_messages).


(In general for Gerrit code reviews, the change author is expected to [log in to Gerrit](https://go-review.googlesource.com/login/) with a Gmail or other Google account and then close out each piece of feedback by marking it as 'Done' if implemented as suggested or otherwise reply to each review comment. See the [Review](https://go.dev/doc/contribute#review) section of the Contributing Guide for details.)

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: net
    Gerrit-Branch: master
    Gerrit-Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
    Gerrit-Change-Number: 599895
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Chen Su <gho...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Comment-Date: Sat, 20 Jul 2024 20:32:01 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Gopher Robot (Gerrit)

    unread,
    Jul 20, 2024, 4:33:31 PM7/20/24
    to Gerrit Bot, Chen Su, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Message from Gopher Robot

    Congratulations on opening your first change. Thank you for your contribution!

    Next steps:
    A maintainer will review your change and provide feedback. See
    https://go.dev/doc/contribute#review for more info and tips to get your
    patch through code review.

    Most changes in the Go project go through a few rounds of revision. This can be
    surprising to people new to the project. The careful, iterative review process
    is our way of helping mentor contributors and ensuring that their contributions
    have a lasting impact.

    During May-July and Nov-Jan the Go project is in a code freeze, during which
    little code gets reviewed or merged. If a reviewer responds with a comment like
    R=go1.11 or adds a tag like "wait-release", it means that this CL will be
    reviewed as part of the next development cycle. See https://go.dev/s/release
    for more details.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: net
    Gerrit-Branch: master
    Gerrit-Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
    Gerrit-Change-Number: 599895
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Chen Su <gho...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Comment-Date: Sat, 20 Jul 2024 20:33:26 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Ian Lance Taylor (Gerrit)

    unread,
    Jul 20, 2024, 10:18:25 PM7/20/24
    to Gerrit Bot, Chen Su, goph...@pubsubhelper.golang.org, Ian Lance Taylor, Damien Neil, Gopher Robot, golang-co...@googlegroups.com
    Attention needed from Damien Neil

    Ian Lance Taylor voted Commit-Queue+1

    Commit-Queue+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Damien Neil
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: net
    Gerrit-Branch: master
    Gerrit-Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
    Gerrit-Change-Number: 599895
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-Reviewer: Damien Neil <dn...@google.com>
    Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
    Gerrit-CC: Chen Su <gho...@gmail.com>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Attention: Damien Neil <dn...@google.com>
    Gerrit-Comment-Date: Sun, 21 Jul 2024 02:18:20 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    open
    diffy

    Gerrit Bot (Gerrit)

    unread,
    Jul 21, 2024, 12:46:05 PM7/21/24
    to Chen Su, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
    Attention needed from Damien Neil and Ian Lance Taylor

    Gerrit Bot uploaded new patchset

    Gerrit Bot uploaded patch set #2 to this change.
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Damien Neil
    • Ian Lance Taylor
    Submit Requirements:
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      • requirement satisfiedTryBots-Pass
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: newpatchset
      Gerrit-Project: net
      Gerrit-Branch: master
      Gerrit-Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
      Gerrit-Change-Number: 599895
      Gerrit-PatchSet: 2
      Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
      Gerrit-Reviewer: Damien Neil <dn...@google.com>
      Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
      Gerrit-CC: Chen Su <gho...@gmail.com>
      Gerrit-CC: Gopher Robot <go...@golang.org>
      Gerrit-Attention: Damien Neil <dn...@google.com>
      Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
      unsatisfied_requirement
      satisfied_requirement
      open
      diffy

      Chen Su (Gerrit)

      unread,
      Jul 21, 2024, 1:03:07 PM7/21/24
      to Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Ian Lance Taylor, Damien Neil, Gopher Robot, golang-co...@googlegroups.com
      Attention needed from Damien Neil and Ian Lance Taylor

      Chen Su added 1 comment

      Patchset-level comments
      File-level comment, Patchset 1:
      Gopher Robot . resolved

      I spotted some possible problems.

      These findings are based on simple heuristics. If a finding appears wrong, briefly reply here saying so. Otherwise, please address any problems and update the GitHub PR. When complete, mark this comment as 'Done' and click the [blue 'Reply' button](https://go.dev/wiki/GerritBot#i-left-a-reply-to-a-comment-in-gerrit-but-no-one-but-me-can-see-it) above.

      Possible problems detected:
      1. The commit title should not end with a period.
      2. Lines in the commit message should be wrapped at ~76 characters unless needed for things like URLs or tables. You have a 187 character line.
      3. You usually need to reference a bug number for all but trivial or cosmetic fixes. For the net repo, the format is usually 'Fixes golang/go#12345' or 'Updates golang/go#12345' at the end of the commit message. Should you have a bug reference?

      The commit title and commit message body come from the GitHub PR title and description, and must be edited in the GitHub web interface (not via git). For instructions, see [here](https://go.dev/wiki/GerritBot/#how-does-gerritbot-determine-the-final-commit-message). For guidelines on commit messages for the Go project, see [here](https://go.dev/doc/contribute#commit_messages).


      (In general for Gerrit code reviews, the change author is expected to [log in to Gerrit](https://go-review.googlesource.com/login/) with a Gmail or other Google account and then close out each piece of feedback by marking it as 'Done' if implemented as suggested or otherwise reply to each review comment. See the [Review](https://go.dev/doc/contribute#review) section of the Contributing Guide for details.)

      Chen Su

      Done

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Damien Neil
      • Ian Lance Taylor
      Submit Requirements:
        • requirement is not satisfiedCode-Review
        • requirement satisfiedNo-Unresolved-Comments
        • requirement is not satisfiedReview-Enforcement
        • requirement satisfiedTryBots-Pass
        Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
        Gerrit-MessageType: comment
        Gerrit-Project: net
        Gerrit-Branch: master
        Gerrit-Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
        Gerrit-Change-Number: 599895
        Gerrit-PatchSet: 2
        Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
        Gerrit-Reviewer: Damien Neil <dn...@google.com>
        Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
        Gerrit-CC: Chen Su <gho...@gmail.com>
        Gerrit-CC: Gopher Robot <go...@golang.org>
        Gerrit-Attention: Damien Neil <dn...@google.com>
        Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
        Gerrit-Comment-Date: Sun, 21 Jul 2024 17:02:57 +0000
        Gerrit-HasComments: Yes
        Gerrit-Has-Labels: No
        Comment-In-Reply-To: Gopher Robot <go...@golang.org>
        unsatisfied_requirement
        satisfied_requirement
        open
        diffy

        Ian Lance Taylor (Gerrit)

        unread,
        Jul 21, 2024, 11:16:01 PM7/21/24
        to Gerrit Bot, Chen Su, goph...@pubsubhelper.golang.org, Go LUCI, Ian Lance Taylor, Damien Neil, Gopher Robot, golang-co...@googlegroups.com
        Attention needed from Damien Neil

        Ian Lance Taylor added 1 comment

        Commit Message
        Line 10, Patchset 2 (Latest):`base64.URLEncoding`, then removes the padding. It is equivalent to the
        Ian Lance Taylor . unresolved

        We don't use markdown in commit messages. Please remove the backquotes. Thanks.

        Open in Gerrit

        Related details

        Attention is currently required from:
        • Damien Neil
        Submit Requirements:
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          • requirement satisfiedTryBots-Pass
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: comment
          Gerrit-Project: net
          Gerrit-Branch: master
          Gerrit-Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
          Gerrit-Change-Number: 599895
          Gerrit-PatchSet: 2
          Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
          Gerrit-Reviewer: Damien Neil <dn...@google.com>
          Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
          Gerrit-CC: Chen Su <gho...@gmail.com>
          Gerrit-CC: Gopher Robot <go...@golang.org>
          Gerrit-Attention: Damien Neil <dn...@google.com>
          Gerrit-Comment-Date: Mon, 22 Jul 2024 03:15:55 +0000
          Gerrit-HasComments: Yes
          Gerrit-Has-Labels: No
          unsatisfied_requirement
          satisfied_requirement
          open
          diffy

          Gerrit Bot (Gerrit)

          unread,
          Jul 21, 2024, 11:20:47 PM7/21/24
          to Chen Su, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com
          Attention needed from Damien Neil and Ian Lance Taylor

          Gerrit Bot uploaded new patchset

          Gerrit Bot uploaded patch set #3 to this change.
          Open in Gerrit

          Related details

          Attention is currently required from:
          • Damien Neil
          • Ian Lance Taylor
          Submit Requirements:
          • requirement is not satisfiedCode-Review
          • requirement is not satisfiedNo-Unresolved-Comments
          • requirement is not satisfiedReview-Enforcement
          • requirement satisfiedTryBots-Pass
          Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
          Gerrit-MessageType: newpatchset
          Gerrit-Project: net
          Gerrit-Branch: master
          Gerrit-Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
          Gerrit-Change-Number: 599895
          Gerrit-PatchSet: 3
          Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
          Gerrit-Reviewer: Damien Neil <dn...@google.com>
          Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
          Gerrit-CC: Chen Su <gho...@gmail.com>
          Gerrit-CC: Gopher Robot <go...@golang.org>
          Gerrit-Attention: Damien Neil <dn...@google.com>
          unsatisfied_requirement
          satisfied_requirement
          open
          diffy

          Chen Su (Gerrit)

          unread,
          Jul 21, 2024, 11:22:01 PM7/21/24
          to Gerrit Bot, goph...@pubsubhelper.golang.org, Go LUCI, Ian Lance Taylor, Damien Neil, Gopher Robot, golang-co...@googlegroups.com
          Attention needed from Damien Neil and Ian Lance Taylor

          Chen Su added 1 comment

          Commit Message
          Line 10, Patchset 2:`base64.URLEncoding`, then removes the padding. It is equivalent to the
          Ian Lance Taylor . resolved

          We don't use markdown in commit messages. Please remove the backquotes. Thanks.

          Chen Su

          Done

          Open in Gerrit

          Related details

          Attention is currently required from:
          • Damien Neil
          • Ian Lance Taylor
          Submit Requirements:
            • requirement is not satisfiedCode-Review
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            • requirement satisfiedTryBots-Pass
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: net
            Gerrit-Branch: master
            Gerrit-Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
            Gerrit-Change-Number: 599895
            Gerrit-PatchSet: 3
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Damien Neil <dn...@google.com>
            Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
            Gerrit-CC: Chen Su <gho...@gmail.com>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-Attention: Damien Neil <dn...@google.com>
            Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
            Gerrit-Comment-Date: Mon, 22 Jul 2024 03:21:54 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: No
            Comment-In-Reply-To: Ian Lance Taylor <ia...@golang.org>
            unsatisfied_requirement
            satisfied_requirement
            open
            diffy

            Damien Neil (Gerrit)

            unread,
            Jul 22, 2024, 2:14:41 PM7/22/24
            to Gerrit Bot, Chen Su, goph...@pubsubhelper.golang.org, Go LUCI, Ian Lance Taylor, Gopher Robot, golang-co...@googlegroups.com
            Attention needed from Ian Lance Taylor

            Damien Neil voted and added 1 comment

            Votes added by Damien Neil

            Code-Review+2
            Commit-Queue+1

            1 comment

            Patchset-level comments
            File-level comment, Patchset 3 (Latest):
            Damien Neil . resolved

            Thanks.

            Open in Gerrit

            Related details

            Attention is currently required from:
            • Ian Lance Taylor
            Submit Requirements:
            • requirement satisfiedCode-Review
            • requirement satisfiedNo-Unresolved-Comments
            • requirement is not satisfiedReview-Enforcement
            • requirement satisfiedTryBots-Pass
            Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
            Gerrit-MessageType: comment
            Gerrit-Project: net
            Gerrit-Branch: master
            Gerrit-Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
            Gerrit-Change-Number: 599895
            Gerrit-PatchSet: 3
            Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
            Gerrit-Reviewer: Damien Neil <dn...@google.com>
            Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
            Gerrit-CC: Chen Su <gho...@gmail.com>
            Gerrit-CC: Gopher Robot <go...@golang.org>
            Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
            Gerrit-Comment-Date: Mon, 22 Jul 2024 18:14:36 +0000
            Gerrit-HasComments: Yes
            Gerrit-Has-Labels: Yes
            satisfied_requirement
            unsatisfied_requirement
            open
            diffy

            Ian Lance Taylor (Gerrit)

            unread,
            Jul 22, 2024, 2:17:14 PM7/22/24
            to Gerrit Bot, Chen Su, goph...@pubsubhelper.golang.org, Damien Neil, Go LUCI, Ian Lance Taylor, Gopher Robot, golang-co...@googlegroups.com
            Attention needed from Ian Lance Taylor

            Ian Lance Taylor voted Code-Review+2

            Code-Review+2
            Open in Gerrit

            Related details

            Attention is currently required from:
            • Ian Lance Taylor
            Submit Requirements:
              • requirement satisfiedCode-Review
              • requirement satisfiedNo-Unresolved-Comments
              • requirement satisfiedReview-Enforcement
              • requirement satisfiedTryBots-Pass
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: comment
              Gerrit-Project: net
              Gerrit-Branch: master
              Gerrit-Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
              Gerrit-Change-Number: 599895
              Gerrit-PatchSet: 3
              Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
              Gerrit-Reviewer: Damien Neil <dn...@google.com>
              Gerrit-Reviewer: Ian Lance Taylor <ia...@golang.org>
              Gerrit-Reviewer: Ian Lance Taylor <ia...@google.com>
              Gerrit-CC: Chen Su <gho...@gmail.com>
              Gerrit-CC: Gopher Robot <go...@golang.org>
              Gerrit-Attention: Ian Lance Taylor <ia...@golang.org>
              Gerrit-Comment-Date: Mon, 22 Jul 2024 18:17:10 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              open
              diffy

              Ian Lance Taylor (Gerrit)

              unread,
              Jul 22, 2024, 2:17:19 PM7/22/24
              to Gerrit Bot, Chen Su, goph...@pubsubhelper.golang.org, Damien Neil, Go LUCI, Ian Lance Taylor, Gopher Robot, golang-co...@googlegroups.com
              Attention needed from Ian Lance Taylor

              Ian Lance Taylor voted

              Auto-Submit+1
              Commit-Queue+1
              Gerrit-Comment-Date: Mon, 22 Jul 2024 18:17:15 +0000
              Gerrit-HasComments: No
              Gerrit-Has-Labels: Yes
              satisfied_requirement
              open
              diffy

              Gopher Robot (Gerrit)

              unread,
              Jul 22, 2024, 2:18:25 PM7/22/24
              to Gerrit Bot, Chen Su, goph...@pubsubhelper.golang.org, golang-...@googlegroups.com, Damien Neil, Go LUCI, Ian Lance Taylor, golang-co...@googlegroups.com

              Gopher Robot submitted the change

              Change information

              Commit message:
              xsrftoken: create no padding base64 string by RawURLEncoding

              The XSRF token generation function creates the padded base64 string by
              base64.URLEncoding, then removes the padding. It is equivalent to the

              base64.RawURLEncoding but with more costs.
              Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
              GitHub-Last-Rev: a8263b543cc3c779c7e20ba143994d638e3b7143
              GitHub-Pull-Request: golang/net#217
              Reviewed-by: Ian Lance Taylor <ia...@google.com>
              Reviewed-by: Damien Neil <dn...@google.com>
              Auto-Submit: Ian Lance Taylor <ia...@google.com>
              Commit-Queue: Damien Neil <dn...@google.com>
              Commit-Queue: Ian Lance Taylor <ia...@google.com>
              Files:
              • M xsrftoken/xsrf.go
              Change size: XS
              Delta: 1 file changed, 2 insertions(+), 3 deletions(-)
              Branch: refs/heads/master
              Submit Requirements:
              • requirement satisfiedCode-Review: +2 by Damien Neil, +2 by Ian Lance Taylor
              • requirement satisfiedTryBots-Pass: LUCI-TryBot-Result+1 by Go LUCI
              Open in Gerrit
              Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
              Gerrit-MessageType: merged
              Gerrit-Project: net
              Gerrit-Branch: master
              Gerrit-Change-Id: I9cf5ad94e9cf3dca9bbfc1b6818ab07d41acf417
              Gerrit-Change-Number: 599895
              Gerrit-PatchSet: 4
              Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
              Gerrit-Reviewer: Damien Neil <dn...@google.com>
              Gerrit-Reviewer: Gopher Robot <go...@golang.org>
              open
              diffy
              satisfied_requirement
              Reply all
              Reply to author
              Forward
              0 new messages