From 4ca00f934f0b86dc1112c360f4b2ce3bd7ab8c93 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 19 Feb 2019 12:10:14 +0100 Subject: [PATCH] OpenSSL::Util::Pod: allow slashes in names The names in the NAME section may describe headers, which contain a slash for OpenSSL headers. We deal with that by converting slashes to dashes for the file names. Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/8286) --- util/perl/OpenSSL/Util/Pod.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/perl/OpenSSL/Util/Pod.pm b/util/perl/OpenSSL/Util/Pod.pm index 02ad0a8f39..16622c933c 100644 --- a/util/perl/OpenSSL/Util/Pod.pm +++ b/util/perl/OpenSSL/Util/Pod.pm @@ -140,7 +140,7 @@ sub extract_pod_info { $podinfo{lastsecttext} =~ s| - .*$||; my @names = - map { s|\s+||g; $_ } + map { s|\s+||g; s|/|-|g; $_ } split(m|,|, $podinfo{lastsecttext}); return ( section => $podinfo{section}, names => [ @names ] ); -- 2.25.1