Skip Menu |
 

This queue is for tickets about the CGI-Simple CPAN distribution.

Report information
The Basics
Id: 95828
Status: resolved
Priority: 0/
Queue: CGI-Simple

People
Owner: MANWAR [...] cpan.org
Requestors: mgruzdev [...] cheby.ru
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 1.13



CC: Павел Кудрявцев <pik [...] cheby.ru>
Subject: param ('PUTDATA') returns garbled binary data
Date: Wed, 21 May 2014 15:02:58 +0400
To: bug-Cgi-Simple [...] rt.cpan.org
From: Maksim Gruzdev <mgruzdev [...] cheby.ru>
Download (untitled) / with headers
text/plain 400b
Hi! We are writing a REST application, While uploading a file (word document) open UPLOADED_FILE, '>upload.docx' or die; binmode UPLOADED_FILE; print UPLOADED_FILE $cgi_simple -> param ('PUTDATA'); close UPLOADED_FILE; binary PUTDATA body is getting corrupt (word wouldn't open such file anymore) PUTDATA parameter is not corrupted with CGI.pm Here is a patch -- Best Regards, Maksim Gruzdev
Download putdata.patch
text/x-diff 1.1k

Message body is not shown because sender requested not to inline it.

Download (untitled) / with headers
text/plain 109b
Could you also provide a test, please? GitHub repo for pull request: https://github.com/szabgab/CGI--Simple


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.