Projeto

Geral

Perfil

Defeito #1149

Atualizado por Alexandre Luiz Correiamais de 1 ano

No arquivo phpgwapi/inc/common_functions.inc.php existe um tratamento executado sobre os arrays globais:

<pre>
if( !isset($GLOBALS['phpgw_info']['flags']['disable_modify_request']) || !$GLOBALS['phpgw_info']['flags']['disable_modify_request'] == True )
{
foreach(array('_GET','_POST','_REQUEST','HTTP_GET_VARS','HTTP_POST_VARS','HTTP_REQUEST_VARS') as $where)
{
if ( !isset( $GLOBALS[$where] ) ) continue;
$pregs = array(
'order' => '/^[a-zA-Z0-9_]*$/',
'sort' => '/^(ASC|DESC|asc|desc|0|1|2|3|4|5|6|7){0,1}$/',
);
foreach(array('order','sort') as $name)
{
if (isset($GLOBALS[$where][$name]) && !is_array($GLOBALS[$where][$name]) && !preg_match($pregs[$name],$GLOBALS[$where][$name]))
{
$GLOBALS[$where][$name] = '';
}
}
if ( isset( $GLOBALS[$where] ) && is_array( $GLOBALS[$where] ) )
{
_check_script_tag($GLOBALS[$where],$where);
}
}
}
</pre>

Quando o arquivo common_functions é incluído no módulo ExpressoMail, deve-se setar a varíavel $GLOBALS['phpgw_info']['flags']['disable_modify_request'] == true False

Isso para evitar a chamada de _check_script_tag

O tratamento de tags no corpo dos emails é feito pelo parser, não sendo necessário neste ponto da common_functions.

Voltar