From 2851cd1e1e399834f754893627bdae9f1c32d232 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Thu, 23 Oct 2008 10:01:24 -0400 Subject: [PATCH] BSPrinterRootForm's marked as ::setUpload() would not have the right enctype set * PrinterRootForm.php: (BSPrinterRootForm::paint): Use the proper enctype --- CHANGES | 4 ++++ PrinterRootForm.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index 5ff97e8..c11ae01 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,7 @@ +3.1.3 +=================== +- Fixed: BSPrinterRootForm's marked as ::setUpload() would not have the right enctype set + 3.1.2 =================== - Fixed: BSDb::query() would not generate a Result object for explain, show, and describe queries diff --git a/PrinterRootForm.php b/PrinterRootForm.php index f5f42a5..b347283 100644 --- a/PrinterRootForm.php +++ b/PrinterRootForm.php @@ -138,7 +138,7 @@ class BSPrinterRootForm extends BSPrinterRootAbstract { array_push($this->children, new BSPrinterElement('hidden', 'do', $this->do)); - return "\n
name . "\" action=\"" . $this->action . "\" method=\"post\"" . ($this->upload ? ' enctype="mime/multi-part"' : '') . ">\n" . $this->_paintChildren() . "\n
"; + return "\n
name . "\" action=\"" . $this->action . "\" method=\"post\"" . ($this->upload ? ' enctype="multipart/form-data"' : '') . ">\n" . $this->_paintChildren() . "\n
"; } } -- 2.43.5