Handle UTF-8 characters in asset titles in the trash. Fixes bug #12385.

This commit is contained in:
Colin Kuskie 2012-09-12 09:20:27 -07:00
parent 2d83f3c0d1
commit ef6eabfa9e
2 changed files with 2 additions and 1 deletions

View file

@ -520,7 +520,7 @@ sub www_manageTrash {
\n";
# To avoid string escaping issues
my $json = JSON->new;
my $json = JSON->new->utf8(1);
my $amethod = sub {
my ($method, @args) = @_;
my $array = $json->encode(\@args);