File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -558,7 +558,9 @@ sub _yaml_loadfile {
558558 # 5.6.2 could not do the local() with the reference
559559 # so we do it manually instead
560560 my $old_loadcode = ${" $yaml_module \: :LoadCode" };
561+ my $old_loadblessed = ${" $yaml_module \: :LoadBlessed" };
561562 ${ " $yaml_module \: :LoadCode" } = $CPAN::Config -> {yaml_load_code } || 0;
563+ ${ " $yaml_module \: :LoadBlessed" } = 1;
562564
563565 my ($code , @yaml );
564566 if ($code = UNIVERSAL::can($yaml_module , " LoadFile" )) {
@@ -582,6 +584,7 @@ sub _yaml_loadfile {
582584 }
583585 }
584586 ${" $yaml_module \: :LoadCode" } = $old_loadcode ;
587+ ${" $yaml_module \: :LoadBlessed" } = $old_loadblessed ;
585588 return \@yaml ;
586589 } else {
587590 # this shall not be done by the frontend
You can’t perform that action at this time.
0 commit comments