Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The current clean() replaces : with _ (colons are internally used as separators). This produce can produce same output for different inputs, for example the user _foo_ can obtain valid tokens for user :foo:. This CL replace colons with double colons instead of replacing them with underscores. Fixes golang/go#34308 Change-Id: I3e4148a0836e62fda1a5f0ba32b375121368afd3 Reviewed-on: https://go-review.googlesource.com/c/net/+/196457 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
- Loading branch information
Showing
2 changed files
with
28 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters