Changeset 1016
- Timestamp:
- 07/12/08 00:01:22 (5 months ago)
- Files:
-
- trunk/lib/jelix/CREDITS (modified) (1 diff)
- trunk/lib/jelix/plugins/tpl/html/function.ctrl_value.php (modified) (2 diffs)
- trunk/lib/jelix/plugins/tpl/html/function.formdatafull.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/jelix/CREDITS
r1015 r1016 27 27 - some errors and missing help for jAcl2 command line scripts (#622) 28 28 - jSession: old sessions are not purged with some PHP configurations (#645) 29 - linebreaks in textareas in jtpl plugin (#646) 29 30 30 31 Bastien Jaillot (aka bastnic) trunk/lib/jelix/plugins/tpl/html/function.ctrl_value.php
r877 r1016 4 4 * @subpackage jtpl_plugin 5 5 * @author Laurent Jouanneau 6 * @contributor Dominique Papin 6 * @contributor Dominique Papin, Julien Issler 7 7 * @copyright 2007-2008 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 … … 54 55 } 55 56 echo substr($s, strlen($sep)); 56 }elseif($ctrl->datatype instanceof jDatatypeHtml) {57 }elseif($ctrl->datatype instanceof jDatatypeHtml) 57 58 echo $value; 58 }else 59 else if($ctrl->type == 'textarea') 60 echo nl2br(htmlspecialchars($value)); 61 else 59 62 echo htmlspecialchars($value); 60 63 } trunk/lib/jelix/plugins/tpl/html/function.formdatafull.php
r883 r1016 4 4 * @subpackage jtpl_plugin 5 5 * @author Laurent Jouanneau 6 * @contributor Dominique Papin 6 * @contributor Dominique Papin, Julien Issler 7 7 * @copyright 2007-2008 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 … … 34 35 } 35 36 echo substr($s, 1); 36 }elseif($ctrl->datatype instanceof jDatatypeHtml) {37 }elseif($ctrl->datatype instanceof jDatatypeHtml) 37 38 echo $value; 38 }else 39 else if($ctrl->type == 'textarea') 40 echo nl2br(htmlspecialchars($value)); 41 else 39 42 echo htmlspecialchars($value); 40 43
