OpenSSL::Util::Pod: allow slashes in names
[openssl.git] / util / perl / OpenSSL / Util / Pod.pm
index 9f76fbf1a6c6866b5534320eb67519c1ccd0f8e6..16622c933c37975f13a357858380ed00237d78bb 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 2016 The OpenSSL Project Authors. All Rights Reserved.
 #
-# Licensed under the OpenSSL license (the "License").  You may not use
+# Licensed under the Apache License 2.0 (the "License").  You may not use
 # this file except in compliance with the License.  You can obtain a copy
 # in the file LICENSE in the source distribution or at
 # https://www.openssl.org/source/license.html
@@ -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 ] );