From 8fb0c1393aede143c7189742db4091e30f80d64a Mon Sep 17 00:00:00 2001 From: Johannes Erwerle Date: Mon, 6 Apr 2026 18:59:53 +0200 Subject: [PATCH] FIX: Missing "=" in possible characters in SSH pubkeys. --- community_backup/webui/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/community_backup/webui/models.py b/community_backup/webui/models.py index fdbe42a..8e4fe51 100644 --- a/community_backup/webui/models.py +++ b/community_backup/webui/models.py @@ -16,7 +16,7 @@ class BorgRepository(models.Model): key = models.TextField( validators=[ RegexValidator( - r"(ssh\-rsa|ecdsa\-sha2\-nistp256|ssh\-ed25519) ([a-zA-Z0-9\+/]+) (\S*)", + r"(ssh\-rsa|ecdsa\-sha2\-nistp256|ssh\-ed25519) ([a-zA-Z0-9\+/=]+) (\S*)", message="not a valid SSH public key.", ), ]