phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: etemplate/inc class.html.inc.php,1.20,1.21


From: Ralf Becker <address@hidden>
Subject: [Phpgroupware-cvs] CVS: etemplate/inc class.html.inc.php,1.20,1.21
Date: Thu, 26 Jun 2003 15:15:22 -0400

Update of /cvsroot/phpgroupware/etemplate/inc
In directory subversions:/tmp/cvs-serv4102/etemplate/inc

Modified Files:
        class.html.inc.php 
Log Message:
some changes for register globals off and one more htmlentities for image-tiltle

Index: class.html.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/etemplate/inc/class.html.inc.php,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -r1.20 -r1.21
*** class.html.inc.php  14 Jun 2003 13:47:41 -0000      1.20
--- class.html.inc.php  26 Jun 2003 19:15:20 -0000      1.21
***************
*** 20,26 ****
        function html()
        {                                                                       
                                                        // should be Ok for all 
HTML 4 compatible browsers
!               if (!eregi('compatible; ([a-z_]+)[/ 
]+([0-9.]+)',$GLOBALS['HTTP_USER_AGENT'],$parts))
                {
!                       
eregi('^([a-z_]+)/([0-9.]+)',$GLOBALS['HTTP_USER_AGENT'],$parts);
                }
                list(,$this->user_agent,$this->ua_version) = $parts;
--- 20,26 ----
        function html()
        {                                                                       
                                                        // should be Ok for all 
HTML 4 compatible browsers
!               if (!eregi('compatible; ([a-z_]+)[/ 
]+([0-9.]+)',$_SERVER['HTTP_USER_AGENT'],$parts))
                {
!                       
eregi('^([a-z_]+)/([0-9.]+)',$_SERVER['HTTP_USER_AGENT'],$parts);
                }
                list(,$this->user_agent,$this->ua_version) = $parts;
***************
*** 50,54 ****
                if (0+$multiple > 0)
                {
!                       $options .= ' MULTIPLE SIZE='.(0+$multiple);
                        if (substr($name,-2) != '[]')
                        {
--- 50,54 ----
                if (0+$multiple > 0)
                {
!                       $options .= ' MULTIPLE SIZE="'.(0+$multiple).'"';
                        if (substr($name,-2) != '[]')
                        {
***************
*** 92,96 ****
                        if (!$ignore_empty || $value && !($name == 'filter' && 
$value == 'none'))       // dont need to send all the empty vars
                        {
!                               $html .= "<INPUT TYPE=HIDDEN NAME=\"$name\" 
VALUE=\"".htmlspecialchars($value)."\">\n";
                        }
                }
--- 92,96 ----
                        if (!$ignore_empty || $value && !($name == 'filter' && 
$value == 'none'))       // dont need to send all the empty vars
                        {
!                               $html .= "<INPUT TYPE=\"HIDDEN\" NAME=\"$name\" 
VALUE=\"".htmlspecialchars($value)."\">\n";
                        }
                }
***************
*** 264,268 ****
                        $path = $name;          // name may already contain 
absolut path
                }
!               if (address@hidden($GLOBALS['DOCUMENT_ROOT'] . $path))
                {
                        return $title;
--- 264,268 ----
                        $path = $name;          // name may already contain 
absolut path
                }
!               if (address@hidden($_SERVER['DOCUMENT_ROOT'] . $path))
                {
                        return $title;
***************
*** 270,274 ****
                if ($title)
                {
!                       $options .= " $this->prefered_img_title=\"$title\"";
                }
                return "<IMG SRC=\"$path\" $options>";
--- 270,274 ----
                if ($title)
                {
!                       $options .= " 
$this->prefered_img_title=\"".htmlentities($title).'"';
                }
                return "<IMG SRC=\"$path\" $options>";





reply via email to

[Prev in Thread] Current Thread [Next in Thread]