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

From: Wolfram Schneider <wosch_at_FreeBSD.org>
Date: Tue, 22 Mar 2022 11:25:29 UTC
The branch main has been updated by wosch:

URL: https://cgit.FreeBSD.org/doc/commit/?id=96735e89115ec2880628d3efd6fdd73beb3d8e06

commit 96735e89115ec2880628d3efd6fdd73beb3d8e06
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2022-03-22 11:24:02 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
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 <wosch@FreeBSD.org>
+# Copyright (c) 1996-2022 Wolfram Schneider <wosch@FreeBSD.org>
 # 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