forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Extensions] Handle RTL and directional characters in extension names
This CL introduces base::i18n::EnsureTerminatedDirectionalFormatting to ensure that the supplied text contains no unterminated directional formatting characters. Additionally, this CL introduces base::i18n::SanitizeUserSuppliedString which adjusts the supplied text according to the locale direction and relies on the previous method to handle unterminated directional formatting characters. The SanitizeUserSuppliedString is applied to sanitize RTL and directional characters in extension names. Bug: 685747 Change-Id: I48db3a37b8a54d5c4ca5556d56cde4c9da31abe3 Reviewed-on: https://chromium-review.googlesource.com/876522 Commit-Queue: catmullings <catmullings@chromium.org> Reviewed-by: Devlin <rdevlin.cronin@chromium.org> Reviewed-by: Jungshik Shin <jshin@chromium.org> Reviewed-by: Matt Giuca <mgiuca@chromium.org> Cr-Commit-Position: refs/heads/master@{#536375}
- Loading branch information
Catherine Mullings
authored and
Commit Bot
committed
Feb 13, 2018
1 parent
057f7f7
commit 867fbaa
Showing
5 changed files
with
156 additions
and
3 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
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
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