diff options
| author | Michael Albinus | 2025-09-15 11:43:52 +0200 |
|---|---|---|
| committer | Michael Albinus | 2025-09-15 11:43:52 +0200 |
| commit | 72c19d0f395e8883c65689c86e79905a34d36586 (patch) | |
| tree | bb277e51742b2f473246287fc1048784df5ffa75 /doc/misc | |
| parent | 897d32285fc17b8afd889b1f733aed7149b50a5c (diff) | |
| download | emacs-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.texi | 4 |
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 | ||
| 135 | You can use spaces inside a password or other token by surrounding the | 135 | You can use spaces or number signs (@t{"#"}) inside a password or other |
| 136 | token with either single or double quotes. | 136 | token by surrounding the token with either single or double quotes. |
| 137 | 137 | ||
| 138 | You can use apostrophes inside a password or other token by | 138 | You can use apostrophes inside a password or other token by |
| 139 | surrounding it with double quotes, e.g., @t{"he'llo"}. Similarly you | 139 | surrounding it with double quotes, e.g., @t{"he'llo"}. Similarly you |