BUG 10594 I added to validation in SSL and added memory limit SOLVED

I added to validation in SSL and added memory limit
This commit is contained in:
Brayan Osmar Pereyra Suxo
2013-02-04 15:49:46 -04:00
parent 3cdd6e7516
commit 43d10b6185
3 changed files with 17 additions and 2 deletions

View File

@@ -848,6 +848,10 @@ function PMFSendMessage(
$showMessage = true,
$delIndex = 0
) {
ini_set ( "pcre.backtrack_limit", 1000000 );
ini_set ( 'memory_limit', '-1' );
@set_time_limit ( 100000 );
global $oPMScript;
if (isset( $oPMScript->aFields ) && is_array( $oPMScript->aFields )) {

View File

@@ -770,8 +770,17 @@ class wsBase
}
$oSpool = new spoolRun();
$oSpool->setConfig( array ('MESS_ENGINE' => $aSetup['MESS_ENGINE'],'MESS_SERVER' => $aSetup['MESS_SERVER'],'MESS_PORT' => $aSetup['MESS_PORT'],'MESS_ACCOUNT' => $aSetup['MESS_ACCOUNT'],'MESS_PASSWORD' => $aSetup['MESS_PASSWORD'],'SMTPAuth' => $aSetup['MESS_RAUTH']
) );
$oSpool->setConfig(
array (
'MESS_ENGINE' => $aSetup['MESS_ENGINE'],
'MESS_SERVER' => $aSetup['MESS_SERVER'],
'MESS_PORT' => $aSetup['MESS_PORT'],
'MESS_ACCOUNT' => $aSetup['MESS_ACCOUNT'],
'MESS_PASSWORD' => $aSetup['MESS_PASSWORD'],
'SMTPSecure' => $aSetup['SMTPSecure'],
'SMTPAuth' => $aSetup['MESS_RAUTH']
)
);
$oCase = new Cases();
$oldFields = $oCase->loadCase( $caseId );

View File

@@ -517,9 +517,11 @@ class adminProxy extends HttpProxyController
if (strtolower($_POST["UseSecureCon"]) != "no") {
$_POST["SMTPSecure"] = $_POST["UseSecureCon"];
}
/*
if ($_POST['UseSecureCon'] == 'ssl') {
$_POST['MESS_SERVER'] = 'ssl://'.$_POST['MESS_SERVER'];
}
*/
$resp = $this->sendTestMail();
if ($resp->status == '1') {
$this->success=true;