Commit 38b9f0f3 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(server-process-filter): Don't force the authentication

string to be followed by "\n".
parent 97a739d5
......@@ -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)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment