From 38b9f0f370787df00241e25cdb83aa4373801d60 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Fri, 25 Jan 2008 15:43:05 +0000 Subject: [PATCH] (server-process-filter): Don't force the authentication string to be followed by "\n". --- lisp/server.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/server.el b/lisp/server.el index 2087af26b10..23f8eb36947 100644 --- a/lisp/server.el +++ b/lisp/server.el @@ -767,7 +767,7 @@ The following commands are accepted by the client: (server-log (concat "Received " string) proc) ;; First things first: let's check the authentication (unless (process-get proc :authenticated) - (if (and (string-match "-auth \\(.*?\\)\n" string) + (if (and (string-match "-auth \\([!-~]+\\)\n?" string) (equal (match-string 1 string) (process-get proc :auth-key))) (progn (setq string (substring string (match-end 0))) -- 2.39.2