mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-03 09:58:29 +00:00
fix #3426: ui: parser: adapt parseSSHKey to accept "sk-" prefix
Signed-off-by: Lorenz Stechauner <l.stechauner@proxmox.com>
This commit is contained in:
parent
963bb5c91f
commit
91c729d300
@ -675,7 +675,7 @@ Ext.define('PVE.Parser', {
|
||||
parseSSHKey: function(key) {
|
||||
// |--- options can have quotes--| type key comment
|
||||
var keyre = /^(?:((?:[^\s"]|\"(?:\\.|[^"\\])*")+)\s+)?(\S+)\s+(\S+)(?:\s+(.*))?$/;
|
||||
var typere = /^(?:ssh-(?:dss|rsa|ed25519)|ecdsa-sha2-nistp\d+)$/;
|
||||
var typere = /^(?:(?:sk-)?ssh-(?:dss|rsa|ed25519)|ecdsa-sha2-nistp\d+)$/;
|
||||
|
||||
var m = key.match(keyre);
|
||||
if (!m) {
|
||||
|
Loading…
Reference in New Issue
Block a user