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>
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

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

Could you also provide a test, please? GitHub repo for pull request: https://github.com/szabgab/CGI--Simple