pinpoint: Sanitize git_hash

In this change, we strip the whitespace from the `git_hash` input that
may be coming from a form submission or from data we're getting in
various places.

R=abennetts@google.com, fancl@chromium.org

Fixed: chromium:1196896
Change-Id: Ic60c1a6ee20b52291fae09bc4b64a6a0f26bd918
Reviewed-on: https://chromium-review.googlesource.com/c/catapult/+/2812618
Commit-Queue: Dean Berris <dberris@chromium.org>
Commit-Queue: Chenlin Fan <fancl@chromium.org>
Auto-Submit: Dean Berris <dberris@chromium.org>
Reviewed-by: Chenlin Fan <fancl@chromium.org>
2 files changed
tree: 597796c36ccf2d8b0731dd19875027463b0f214d
  1. bin/
  2. catapult_build/
  3. common/
  4. dashboard/
  5. dependency_manager/
  6. devil/
  7. docs/
  8. experimental/
  9. firefighter/
  10. hooks/
  11. infra/
  12. netlog_viewer/
  13. systrace/
  14. telemetry/
  15. third_party/
  16. trace_processor/
  17. tracing/
  18. web_page_replay_go/
  19. .eslintignore
  20. .eslintrc
  21. .gcloudignore
  22. .gitignore
  23. .vpython
  24. AUTHORS
  25. BUILD.gn
  26. codereview.settings
  27. CONTRIBUTING.md
  28. DIR_METADATA
  29. generate_telemetry_build.py
  30. LICENSE
  31. navbar.md
  32. OWNERS
  33. PRESUBMIT.py
  34. pylintrc
  35. README.md
  36. WATCHLISTS
README.md

Catapult

Catapult is the home for several performance tools that span from gathering, displaying and analyzing performance data. This includes:

These tools were created by Chromium developers for performance analysis, testing, and monitoring of Chrome, but they can also be used for analyzing and monitoring websites, and eventually Android apps.

Contributing

Please see our contributor's guide