aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorMichael Albinus2025-09-15 11:43:52 +0200
committerMichael Albinus2025-09-15 11:43:52 +0200
commit72c19d0f395e8883c65689c86e79905a34d36586 (patch)
treebb277e51742b2f473246287fc1048784df5ffa75 /doc/misc
parent897d32285fc17b8afd889b1f733aed7149b50a5c (diff)
downloademacs-72c19d0f395e8883c65689c86e79905a34d36586.tar.gz
emacs-72c19d0f395e8883c65689c86e79905a34d36586.zip
Improve check for netrc tokens
* doc/misc/auth.texi (Help for users): Mention also "#" inside tokens. * lisp/auth-source.el (auth-source-netrc-create): Better check for token format. * test/lisp/auth-source-tests.el (auth-source-backend-parse-json): New test. (auth-source-test-netrc-create-secret): Extend test.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/auth.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/misc/auth.texi b/doc/misc/auth.texi
index cc6fc0c3396..1fd232a697e 100644
--- a/doc/misc/auth.texi
+++ b/doc/misc/auth.texi
@@ -132,8 +132,8 @@ use them automatically, either pass @code{:client-certificate t} to
132@code{open-network-stream}, or customize 132@code{open-network-stream}, or customize
133@code{network-stream-use-client-certificates} to @code{t}. 133@code{network-stream-use-client-certificates} to @code{t}.
134 134
135You can use spaces inside a password or other token by surrounding the 135You can use spaces or number signs (@t{"#"}) inside a password or other
136token with either single or double quotes. 136token by surrounding the token with either single or double quotes.
137 137
138You can use apostrophes inside a password or other token by 138You can use apostrophes inside a password or other token by
139surrounding it with double quotes, e.g., @t{"he'llo"}. Similarly you 139surrounding it with double quotes, e.g., @t{"he'llo"}. Similarly you