Bug 75890 - Update for JSON::RPC 1.1

git-svn-id: svn://svn.office.custis.ru/3rdparty/bugzilla.org/trunk@1519 6955db30-a419-402b-8a0d-67ecbb4d7f56
master
vfilippov 2012-02-29 13:42:11 +00:00
parent d8d49e2967
commit 2135fe586d
3 changed files with 3 additions and 3 deletions

View File

@ -532,7 +532,7 @@ sub cookie
for (keys %{$self->{'.cookies'}})
{
$v = $self->{'.cookies'}->{$_}->value;
Encode::_utf8_on($_) if ?[\x80-\xFFFF]?;
Encode::_utf8_on($_) if /[\x80-\xFFFF]/;
Encode::_utf8_on($v);
push @a, $_, $v;
}

View File

@ -22,7 +22,7 @@
package Bugzilla::WebService::Server::JSONRPC;
use strict;
use base qw(JSON::RPC::Server::CGI Bugzilla::WebService::Server);
use base qw(JSON::RPC::Legacy::Server::CGI Bugzilla::WebService::Server);
use Bugzilla::Error;
use Bugzilla::WebService::Constants;

View File

@ -214,7 +214,7 @@ elsif ($action eq 'case_to_bug'){
ThrowUserError("testopia-read-only", {'object' => $case}) unless $case->canedit;
$case->text;
foreach my $field qw(action effect) {
foreach my $field (qw(action effect)) {
$case->{text}->{$field} =~ s/(<br[\s\/>]+|<p.*?>|<li.*?>)/\n/g;
$case->{text}->{$field} =~ s/<.*?>//g;
# Trivial HTML tag remover