Bugzilla – Attachment 32264 Details for
Bug 11926
HEA - Report usage statistics to Koha community
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 11926: URI-encode data sent to statistics server
Bug-11926-URI-encode-data-sent-to-statistics-serve.patch (text/plain), 982 bytes, created by
Chris Cormack
on 2014-10-11 19:40:20 UTC
(
hide
)
Description:
Bug 11926: URI-encode data sent to statistics server
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2014-10-11 19:40:20 UTC
Size:
982 bytes
patch
obsolete
>From 176fb153b37acf5bfb55f4cf5766c955e7799390 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Fri, 14 Mar 2014 16:04:14 +0100 >Subject: [PATCH] Bug 11926: URI-encode data sent to statistics server > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > C4/UsageStats.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/UsageStats.pm b/C4/UsageStats.pm >index 3fcd6f3..a5478b7 100644 >--- a/C4/UsageStats.pm >+++ b/C4/UsageStats.pm >@@ -24,6 +24,7 @@ use C4::Context; > use POSIX qw(strftime); > use LWP::UserAgent; > use JSON; >+use URI::Encode qw(uri_encode); > > =head1 NAME C4::UsageStats > >@@ -369,7 +370,7 @@ Send to hea.koha-community.org database informations > > sub ReportToCommunity { > my $data = shift; >- my $json = to_json($data); >+ my $json = uri_encode(to_json($data), 1); > > my $ua = LWP::UserAgent->new; > my $req = HTTP::Request->new(POST => "http://hea.koha-community.org/upload.pl"); >-- >1.9.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 11926
:
26203
|
26346
|
26352
|
31369
|
31370
|
31373
|
32024
|
32025
|
32026
|
32027
|
32028
|
32029
|
32030
|
32262
|
32263
|
32264
|
32265
|
32266
|
32267
|
32268
|
32455
|
32456
|
32457
|
32458
|
32459
|
32460
|
32461
|
32462
|
32463
|
32464
|
32465
|
32466
|
32467
|
32468
|
32469
|
32470
|
32471
|
32472
|
32582