]> git.eshelyaron.com Git - emacs.git/commitdiff
(server-process-filter): Don't force the authentication
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 25 Jan 2008 15:43:05 +0000 (15:43 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 25 Jan 2008 15:43:05 +0000 (15:43 +0000)
string to be followed by "\n".

lisp/server.el

index 2087af26b10dc476bb6c33b3c43a2175c4588377..23f8eb36947bac3545d4f35420b39b255d6c7a53 100644 (file)
@@ -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)))