Browse Source

Revert "wut"

This reverts commit a58e0eb36f53f180b3f4145ed6945a0e3cd98466.
Andy Baugh 6 năm trước cách đây
mục cha
commit
2fb09ad3ca
1 tập tin đã thay đổi với 3 bổ sung2 xóa
  1. 3 2
      lib/Cpanel/iContact/Provider/Local.pm

+ 3 - 2
lib/Cpanel/iContact/Provider/Local.pm

@@ -85,9 +85,10 @@ sub send {
                 };
             }
         }
-	    require Cpanel::AdminBin::Serializer;
+	    require JSON::MaybeXS;
         require File::Slurper;
-        File::Slurper::write_binary( $file, Cpanel::AdminBin::Serializer::Dump( { 'subject' => $subject, 'text' => $text, 'html' => $html } ) );
+		my $encoder = JSON::MaybeXS->new( utf8 => 1 );
+        File::Slurper::write_binary( $file, $encoder->encode( { 'subject' => $subject, 'text' => $text, 'html' => $html } ) );
     }
     catch {
         require Cpanel::Exception;