File: yaml-loadblessed.patch

package info (click to toggle)
libkiokudb-perl 0.57-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,412 kB
  • sloc: perl: 13,316; makefile: 12
file content (17 lines) | stat: -rw-r--r-- 472 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: adjust to YAML::XS' new default of not loading objects
Origin: vendor
Bug: https://github.com/kiokudb/kiokudb/issues/17
Bug-Debian: https://bugs.debian.org/950999
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2020-02-24

--- a/lib/KiokuDB/Backend/Serialize/YAML.pm
+++ b/lib/KiokuDB/Backend/Serialize/YAML.pm
@@ -32,6 +32,7 @@
 sub deserialize {
     my ( $self, $blob ) = @_;
 
+    local $YAML::XS::LoadBlessed = 1;
     return Load($blob);
 }