git: a09d0367a2 - main - escape '+' character in links
Wolfram Schneider <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.cvs.doc |
|---|---|
| Message-ID | <[email protected]> |
The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/doc/commit/?id=a09d0367a237645c92100a9e98307f7888975481 commit a09d0367a237645c92100a9e98307f7888975481 Author: Wolfram Schneider <[email protected]> AuthorDate: 2022-03-22 18:06:55 +0000 Commit: Wolfram Schneider <[email protected]> CommitDate: 2022-03-22 18:06:55 +0000 escape '+' character in links PR: 262680 --- website/content/en/cgi/man.cgi | 1 + 1 file changed, 1 insertion(+) diff --git a/website/content/en/cgi/man.cgi b/website/content/en/cgi/man.cgi index 50ea693120..e0024deaab 100755 --- a/website/content/en/cgi/man.cgi +++ b/website/content/en/cgi/man.cgi @@ -1763,6 +1763,7 @@ sub encode_url { # greater than(>), and non-US-ASCII characters (binary data), # and white space. Whew. s/([\000-\032\;\/\?\:\@\&\=\%\'\"\`\<\>\177-\377 ])/sprintf('%%%02x',ord($1))/eg; + s/\+/%2B/g; s/%20/+/g; $_; }