git: 96735e8911 - main - allow '+' character (as in c++) in manual page filename PR: 262680 Reported by: Graham Perrin

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=96735e89115ec2880628d3efd6fdd73beb3d8e06

commit 96735e89115ec2880628d3efd6fdd73beb3d8e06
Author:     Wolfram Schneider <[email protected]>
AuthorDate: 2022-03-22 11:24:02 +0000
Commit:     Wolfram Schneider <[email protected]>
CommitDate: 2022-03-22 11:24:02 +0000

    allow '+' character (as in c++) in manual page filename
    PR:             262680
    Reported by:    Graham Perrin
---
 website/content/en/cgi/man.cgi | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/website/content/en/cgi/man.cgi b/website/content/en/cgi/man.cgi
index 510bdde1f3..50ea693120 100755
--- a/website/content/en/cgi/man.cgi
+++ b/website/content/en/cgi/man.cgi
@@ -1,6 +1,6 @@
 #!/usr/local/bin/perl -T
 #
-# Copyright (c) 1996-2021 Wolfram Schneider <[email protected]>
+# Copyright (c) 1996-2022 Wolfram Schneider <[email protected]>
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -1219,7 +1219,7 @@ sub do_man {
         $name    = $1;
         $section = $2;
     }
-    if ( $name =~ /^([\w\-:\.]+)$/ ) {
+    if ( $name =~ /^([\w\-:\.\+]+)$/ ) {
         $name = $1;
     }
     else { $name = ''; }
@@ -1985,7 +1985,7 @@ sub faq {
 
     return qq{\
 <pre>
-Copyright (c) 1996-2021 <a href="$mailtoURL">Wolfram Schneider</a>
+Copyright (c) 1996-2022 <a href="$mailtoURL">Wolfram Schneider</a>
 Copyright (c) 1993-1995 Berkeley Software Design, Inc.
 
 This data is part of a licensed program from BERKELEY SOFTWARE
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.