[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: etemplate/inc class.html.inc.php,1.19,1.20
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: etemplate/inc class.html.inc.php,1.19,1.20 |
Date: |
Sat, 14 Jun 2003 09:47:44 -0400 |
Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv12484
Modified Files:
class.html.inc.php
Log Message:
added some htmlspecialchars() to the values of input and textarea, to allow
transparent use of " and '
Index: class.html.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.html.inc.php,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -r1.19 -r1.20
*** class.html.inc.php 27 Apr 2003 08:18:53 -0000 1.19
--- class.html.inc.php 14 Jun 2003 13:47:41 -0000 1.20
***************
*** 64,68 ****
while (list($k,$text) = each($arr))
{
! $out .= '<option value="'.$k.'"';
if("$k" == "$key" || strstr(",$key,",",$k,"))
{
--- 64,68 ----
while (list($k,$text) = each($arr))
{
! $out .= '<option value="'.htmlspecialchars($k).'"';
if("$k" == "$key" || strstr(",$key,",",$k,"))
{
***************
*** 100,104 ****
function textarea($name,$value='',$options='' )
{
! return "<TEXTAREA name=\"$name\" $options>$value</TEXTAREA>\n";
}
--- 100,104 ----
function textarea($name,$value='',$options='' )
{
! return "<TEXTAREA name=\"$name\"
$options>".htmlspecialchars($value)."</TEXTAREA>\n";
}
***************
*** 107,111 ****
if ($type) $type = 'TYPE="'.$type.'"';
! return "<INPUT $type NAME=\"$name\" VALUE=\"$value\"
$options>\n";
}
--- 107,111 ----
if ($type) $type = 'TYPE="'.$type.'"';
! return "<INPUT $type NAME=\"$name\"
VALUE=\"".htmlspecialchars($value)."\" $options>\n";
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: etemplate/inc class.html.inc.php,1.19,1.20,
Ralf Becker <address@hidden> <=
- Prev by Date:
[Phpgroupware-cvs] CVS: sitemgr/inc class.Content_BO.inc.php,1.6,1.7 class.Content_SO.inc.php,1.12,1.13 class.Modules_BO.inc.php,1.4,1.5 class.module.inc.php,1.11,1.12 class.xslt_transform.inc.php,1.1,1.2
- Next by Date:
[Phpgroupware-cvs] CVS: etemplate/setup setup.inc.php,1.11,1.12
- Previous by thread:
[Phpgroupware-cvs] CVS: sitemgr/inc class.Content_BO.inc.php,1.6,1.7 class.Content_SO.inc.php,1.12,1.13 class.Modules_BO.inc.php,1.4,1.5 class.module.inc.php,1.11,1.12 class.xslt_transform.inc.php,1.1,1.2
- Next by thread:
[Phpgroupware-cvs] CVS: etemplate/setup setup.inc.php,1.11,1.12
- Index(es):