BSPrinterRootForm's marked as ::setUpload() would not have the right enctype set
authorRobert Sesek <rsesek@bluestatic.org>
Thu, 23 Oct 2008 14:01:24 +0000 (10:01 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Thu, 23 Oct 2008 14:01:24 +0000 (10:01 -0400)
* PrinterRootForm.php:
(BSPrinterRootForm::paint): Use the proper enctype

CHANGES
PrinterRootForm.php

diff --git a/CHANGES b/CHANGES
index 5ff97e894c2cd44516ee2687e14089ca79cfc3b3..c11ae019f025987f042776efc699c15783e3a045 100644 (file)
--- 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
index f5f42a55f320e119ee87bb5992e6f72196513fa9..b347283360547b49678519c329f2f13f1607abc0 100644 (file)
@@ -138,7 +138,7 @@ class BSPrinterRootForm extends BSPrinterRootAbstract
        {
                array_push($this->children, new BSPrinterElement('hidden', 'do', $this->do));
                
-               return "\n<form name=\"" . $this->name . "\" action=\"" . $this->action . "\" method=\"post\"" . ($this->upload ? ' enctype="mime/multi-part"' : '') . ">\n" . $this->_paintChildren() . "\n</form>";
+               return "\n<form name=\"" . $this->name . "\" action=\"" . $this->action . "\" method=\"post\"" . ($this->upload ? ' enctype="multipart/form-data"' : '') . ">\n" . $this->_paintChildren() . "\n</form>";
        }
 }