diff options
author | David Lawrence <dkl@mozilla.com> | 2016-11-30 22:12:11 +0100 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2016-11-30 22:12:11 +0100 |
commit | b9fa3c35b0d7c149fd07126ec3674b4622480b72 (patch) | |
tree | f8a2a230dba2c44c7793aabb5bc27b414f4f85dc /Bugzilla | |
parent | b4a06dd960512528469f375d35e32decfdcbbacd (diff) | |
parent | 8d720931bc4d84f2a0f5cdc3755f9af4f1f9cee2 (diff) | |
download | bugzilla-b9fa3c35b0d7c149fd07126ec3674b4622480b72.tar.gz bugzilla-b9fa3c35b0d7c149fd07126ec3674b4622480b72.tar.xz |
Merge branch 'patch-1' of https://github.com/tvau/bugzilla into tvau-patch-1
* 'patch-1' of https://github.com/tvau/bugzilla:
Bug 1317777 - REST API 1.0 - datetime inputs cause server error
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/API/1_0/Server.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Bugzilla/API/1_0/Server.pm b/Bugzilla/API/1_0/Server.pm index 4dd0c7ddb..40d6f3b15 100644 --- a/Bugzilla/API/1_0/Server.pm +++ b/Bugzilla/API/1_0/Server.pm @@ -12,7 +12,7 @@ use strict; use warnings; use Bugzilla::API::1_0::Constants qw(API_AUTH_HEADERS); -use Bugzilla::API::1_0::Util qw(taint_data fix_credentials api_include_exclude); +use Bugzilla::API::1_0::Util qw(taint_data fix_credentials api_include_exclude datetime_format_inbound); use Bugzilla::Constants; use Bugzilla::Error; @@ -251,10 +251,10 @@ sub _params_check { my $value = $params->{$field}; if (ref $value eq 'ARRAY') { $params->{$field} = - [ map { $self->datetime_format_inbound($_) } @$value ]; + [ map { datetime_format_inbound($_) } @$value ]; } else { - $params->{$field} = $self->datetime_format_inbound($value); + $params->{$field} = datetime_format_inbound($value); } } } |