HomePhorge

Fix validation of SSH keys with spaces in the comment field

Description

Fix validation of SSH keys with spaces in the comment field

Summary: Fixes T5449. Keys are in the form <type> <key> <comments>, where comments are optional and can have spaces.

Test Plan:
Tried these invalid keys:

  • Empty.
  • One part.
  • Invalid type.

Tried these valid keys:

  • No comment.
  • Normal comment.
  • Comment with spaces.

Reviewers: btrahan, chad

Reviewed By: chad

Subscribers: epriestley

Maniphest Tasks: T5449

Differential Revision: https://secure.phabricator.com/D9701

Details

Provenance
epriestleyAuthored on Jun 23 2014, 3:28 PM
themackabuPushed on Mar 25 2025, 8:07 PM
Parents
rPdd91732df338: Make JX.Aphlict a real singleton with a more sensible initialization order
Branches
Unknown
Tags
Unknown

Event Timeline