git: 7454f0fb3c - main - ignore double quotes in search queries PR: 268525 Reported by: 12un91h9.hello@gmail.com
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 23 Dec 2022 15:33:33 UTC
The branch main has been updated by wosch:
URL: https://cgit.FreeBSD.org/doc/commit/?id=7454f0fb3ccea92b67d40e79288cffe4b4c71eea
commit 7454f0fb3ccea92b67d40e79288cffe4b4c71eea
Author: Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2022-12-23 15:31:25 +0000
Commit: Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2022-12-23 15:31:25 +0000
ignore double quotes in search queries
PR: 268525
Reported by: 12un91h9.hello@gmail.com
---
website/content/en/cgi/man.cgi | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/website/content/en/cgi/man.cgi b/website/content/en/cgi/man.cgi
index 5ad9251dcf..7c5e8bffa9 100755
--- a/website/content/en/cgi/man.cgi
+++ b/website/content/en/cgi/man.cgi
@@ -1189,6 +1189,10 @@ sub do_man {
$form{'query'} =~ s/\s+$//;
$form{'query'} =~ s/^\s+//;
+ # not supported query characters
+ $form{'query'} =~ s/"//g;
+ $form{'query'} =~ s/=//g;
+
$name = $query = $form{'query'};
$section = $form{'sektion'};
$apropos = $form{'apropos'};