Changeset 1057 for trunk/expressoMail1_2


Ignore:
Timestamp:
06/29/09 09:29:13 (15 years ago)
Author:
amuller
Message:

Ticket #475 - #559 - Atualização de segurança e adição de tema

Location:
trunk/expressoMail1_2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/expressoMail1_2/inc/class.imap_functions.inc.php

    r1040 r1057  
    10091009                } 
    10101010                // Malicious Code Remove 
    1011                 $dirtyCodePattern = "/(<([\w]+[\w0-9]*)([^>]*)on(mouse(move|over|down|up)|load|blur|change|click|dblclick|focus|key(down|up|press)|select)(\ *)=(\ *)[\"'][^>\"']*[\"']([^>]*)>)(.*)(<\/\\2>)?/misU"; 
     1011                $dirtyCodePattern = "/(<([\w]+[\w0-9]*)(.*)on(mouse(move|over|down|up)|load|blur|change|click|dblclick|focus|key(down|up|press)|select)([\n\ ]*)=([\n\ ]*)[\"'][^>\"']*[\"']([^>]*)>)(.*)(<\/\\2>)?/misU"; 
    10121012                preg_match_all($dirtyCodePattern,$body,$rest,PREG_PATTERN_ORDER); 
    10131013                foreach($rest[0] as $i => $val) 
    10141014                        if (!(preg_match("/javascript:window\.open\(\"\/index\.php\?menuaction=calendar\.uicalendar\.set_action\&cal_id=([^;'\"]+);?['\"]/i",$rest[1][$i]) && strtoupper($rest[4][$i]) == "CLICK" )) //Calendar events 
    1015                                 $body = str_replace($rest[1][$i],"<".$rest[2][$i].$rest[3][$i].$rest[7][$i].">",$body); 
     1015                        $body = str_replace($rest[1][$i],"<".$rest[2][$i].$rest[3][$i].$rest[7][$i].">",$body); 
    10161016 
    10171017                return  "<span>".$body; 
  • trunk/expressoMail1_2/index.php

    r1036 r1057  
    11<?php 
    2  
    3         /* Begin: Check config needed for expressoMail */ 
    4         /* Config need for expressoMail work */ 
    5         $php_ini['session.auto_start'] = '1'; 
    6         $php_ini['magic_quotes_gpc'] = ''; 
    7         $php_ini['magic_quotes_runtime'] = ''; 
    8         $php_ini['magic_quotes_sybase'] = ''; 
    9          
    10         /* Config from php.ini */ 
    11         $php_ini_configs = array("session.auto_start","magic_quotes_gpc","magic_quotes_runtime","magic_quotes_sybase"); 
    12         /* Checking */ 
    13         $error = false; 
    14         foreach($php_ini_configs as $config) 
    15         { 
    16                 if ( ($f_phpini=ini_get($config)) != $php_ini[$config]) 
    17                 { 
    18                         $error = true; 
    19                         echo "Erro: Config <font color=red>$config</font> from php.ini needs to be '" . $php_ini[$config] . "', but is set to '" . $f_phpini . "'.<br>"; 
    20                 } 
    21         } 
    22         if ($error) 
    23                 exit; 
    24         /* End: Check config needed for expressoMail */ 
    252                 
    263        $GLOBALS['phpgw_info']['flags'] = array( 
Note: See TracChangeset for help on using the changeset viewer.