Date: Tue, 22 Mar 2022 18:07:44 GMT From: Wolfram Schneider <wosch@FreeBSD.org> To: doc-committers@FreeBSD.org, dev-commits-doc-all@FreeBSD.org Subject: git: a09d0367a2 - main - escape '+' character in links Message-ID: <202203221807.22MI7iHK033654@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by wosch: URL: https://cgit.FreeBSD.org/doc/commit/?id=a09d0367a237645c92100a9e98307f7888975481 commit a09d0367a237645c92100a9e98307f7888975481 Author: Wolfram Schneider <wosch@FreeBSD.org> AuthorDate: 2022-03-22 18:06:55 +0000 Commit: Wolfram Schneider <wosch@FreeBSD.org> 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; $_; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202203221807.22MI7iHK033654>
