Changeset 1047
- Timestamp:
- 07/25/08 12:19:32 (4 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.0.x/lib/jelix/CREDITS
r1039 r1047 78 78 - jForms: fixed bugs in jforms.js based on Martus' report (#554) 79 79 - jSession: old sessions are not purged with some PHP configurations (#645) 80 - linebreaks in textareas in jtpl plugin (#646) 80 81 81 82 Bastien Jaillot (aka bastnic) branches/1.0.x/lib/jelix/plugins/tpl/html/function.ctrl_value.php
r702 r1047 4 4 * @subpackage jtpl_plugin 5 5 * @author Laurent Jouanneau 6 * @contributor Dominique Papin 6 * @contributor Dominique Papin, Julien Issler 7 7 * @copyright 2007 Laurent Jouanneau, 2007 Dominique Papin 8 * @copyright 2008 Julien Issler 8 9 * @link http://www.jelix.org 9 10 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 52 53 } 53 54 echo substr($s, strlen($sep)); 54 }else 55 }else if($ctrl->type == 'textarea') 56 echo nl2br(htmlspecialchars($value)); 57 else 55 58 echo htmlspecialchars($value); 56 59 } branches/1.0.x/lib/jelix/plugins/tpl/html/function.formdatasfull.php
r968 r1047 4 4 * @subpackage jtpl_plugin 5 5 * @author Laurent Jouanneau 6 * @contributor Dominique Papin 6 * @contributor Dominique Papin, Julien Issler 7 7 * @copyright 2007 Laurent Jouanneau, 2007 Dominique Papin 8 * @copyright 2008 Julien Issler 8 9 * @link http://www.jelix.org 9 10 * @licence GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html … … 37 38 } 38 39 echo substr($s, 1); 39 }else 40 }else if($ctrl->type == 'textarea') 41 echo nl2br(htmlspecialchars($value)); 42 else 40 43 echo htmlspecialchars($value); 41 44
