Quote tokens that start with "#" to ~/.authinfo
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 22 Mar 2012 19:28:17 +0000 (20:28 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 22 Mar 2012 19:28:17 +0000 (20:28 +0100)
* auth-source.el (auth-source-netrc-create): Quote tokens that contain
"#" to avoid having them interpreted as comments.

lisp/ChangeLog
lisp/auth-source.el

index d2a2590..d795909 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-22  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * auth-source.el (auth-source-netrc-create): Quote tokens that contain
+       "#" to avoid having them interpreted as comments.
+
 2012-03-19  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * shr.el (shr-insert): Update the text state properly to avoid
index 3ddbb56..f4aa1db 100644 (file)
@@ -1303,7 +1303,7 @@ See `auth-source-search' for details on SPEC."
                                      (secret "password")
                                      (port   "port") ; redundant but clearer
                                      (t (symbol-name r)))
-                                   (if (string-match "[\" ]" data)
+                                   (if (string-match "[\"# ]" data)
                                        (format "%S" data)
                                      data)))))
             (setq add (concat add (funcall printer)))))))