From 42339d3f4ef6300d15b4daaaa0f51cefe8d92466 Mon Sep 17 00:00:00 2001 From: deepend-tildeclub <58404188+deepend-tildeclub@users.noreply.github.com> Date: Sun, 24 Sep 2023 15:57:04 -0600 Subject: [PATCH] Update makeuser This change should escape special characters in the SSH key before they are passed to sed. --- makeuser | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makeuser b/makeuser index e2861ef..489ab48 100755 --- a/makeuser +++ b/makeuser @@ -36,7 +36,7 @@ is_banned() { move_to_current() { grep -E "makeuser\s+$1\s+$2\s+\"$3\"" /var/signups >> /var/signups_current - sed -i "/makeuser\s\+$1\s\+$2\s\+\"$3\"/d" /var/signups + sed -i "/makeuser\s\+$1\s\+$2\s\+\"$(echo "$3" | sed -e 's/[]\/$*.^[]/\\&/g')\"/d" /var/signups } case $1 in