Skip to content

Commit 6cd07aa

Browse files
committed
Properly validate ssh-key (well, at least a bit better)
1 parent 4665ee3 commit 6cd07aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/git-shell-commands/user-create

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ fi
2828

2929
# TODO(leon): Do we want to validate ssh-key type (e.g. rsa / ed25519 / ..)?
3030
case "$PUBLIC_KEY" in
31-
*'ssh-'**)
31+
'ssh-'*)
3232
;;
3333
*)
3434
echo "Not a valid public key! SSH public keys must start with 'ssh-'"

0 commit comments

Comments
 (0)