git: 7454f0fb3c - main - ignore double quotes in search queries PR: 268525 Reported by: [email protected]

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=7454f0fb3ccea92b67d40e79288cffe4b4c71eea

commit 7454f0fb3ccea92b67d40e79288cffe4b4c71eea
Author:     Wolfram Schneider <[email protected]>
AuthorDate: 2022-12-23 15:31:25 +0000
Commit:     Wolfram Schneider <[email protected]>
CommitDate: 2022-12-23 15:31:25 +0000

    ignore double quotes in search queries
    PR:             268525
    Reported by:    [email protected]
---
 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'};
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.