George S. Baugh %!s(int64=4) %!d(string=hai) anos
pai
achega
d5c2f7b8a6
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lib/Trog/Data/FlatFile.pm

+ 1 - 1
lib/Trog/Data/FlatFile.pm

@@ -82,7 +82,7 @@ sub write($self,$data) {
         my $file = "$datastore/$post->{id}";
         my $update = [$post];
         if (-f $file) {
-            my $slurped = File::Slurper::read_text($file);
+            my $slurped = File::Slurper::read_binary($file);
             my $parsed  = $parser->decode($slurped);
 
             $update = [(@$parsed, $post)];