Fix net::FilePathToFileURL to correctly handle control chars
While implementing file drag and drop, I have discovered that net::FilePathToFileURL does not correctly handle paths which end with a space char. GURL does some modifications to the path in its constructor so we must percent-encode control chars before calling it to avoid corruption. Bug: 1144138 Change-Id: Ie8e601edbc42033e33389ff4bd48046d16571ab8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2522735 Commit-Queue: Joel Hockey <joelhockey@chromium.org> Commit-Queue: Daniel Cheng <dcheng@chromium.org> Auto-Submit: Joel Hockey <joelhockey@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Matt Menke <mmenke@chromium.org> Cr-Commit-Position: refs/heads/master@{#825587}
Showing
Please register or sign in to comment