[Solar-svn] Revision 3097

pmjones at solarphp.com pmjones at solarphp.com
Fri Apr 11 07:14:37 CDT 2008


Solar_View_Helper_FormFile: [CHG] Now ignores the "value" entirely, since it never actually gets outputted to the browser.


Modified: trunk/Solar/View/Helper/FormFile.php
===================================================================
--- trunk/Solar/View/Helper/FormFile.php	2008-04-11 12:11:32 UTC (rev 3096)
+++ trunk/Solar/View/Helper/FormFile.php	2008-04-11 12:14:31 UTC (rev 3097)
@@ -20,6 +20,8 @@
      * 
      * Generates a 'file' element.
      * 
+     * Note that this helper ignores the "value" entirely.
+     * 
      * @param array $info An array of element information.
      * 
      * @return string The element XHTML.
@@ -30,7 +32,6 @@
         $this->_prepare($info);
         return '<input type="file"'
              . ' name="' . $this->_view->escape($this->_name) . '"'
-             . ' value="' . $this->_view->escape($this->_value) . '"'
              . $this->_view->attribs($this->_attribs)
              . ' />';
     }




More information about the Solar-svn mailing list