29 lines
904 B
Diff
29 lines
904 B
Diff
From 08bd14786e38ee6f8156227ee560fbbc6150a8bc Mon Sep 17 00:00:00 2001
|
|
From: Tina Mueller <cpan2@tinita.de>
|
|
Date: Thu, 30 Jan 2020 19:34:52 +0100
|
|
Subject: [PATCH] YAML modules default for $LoadBlessed was changed to false
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
|
---
|
|
lib/CPAN.pm | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/lib/CPAN.pm b/lib/CPAN.pm
|
|
index 2d87f47f..ed8e0444 100644
|
|
--- a/lib/CPAN.pm
|
|
+++ b/lib/CPAN.pm
|
|
@@ -559,6 +559,7 @@ sub _yaml_loadfile {
|
|
# so we do it manually instead
|
|
my $old_loadcode = ${"$yaml_module\::LoadCode"};
|
|
${ "$yaml_module\::LoadCode" } = $CPAN::Config->{yaml_load_code} || 0;
|
|
+ local ${ "$yaml_module\::LoadBlessed" } = 1;
|
|
|
|
my ($code, @yaml);
|
|
if ($code = UNIVERSAL::can($yaml_module, "LoadFile")) {
|
|
--
|
|
2.21.1
|
|
|