added file cache restrictions and mail view

This commit is contained in:
systopia 2015-02-13 11:14:53 +01:00
parent 77b0f506fb
commit 5af6e1df18
2 changed files with 3 additions and 3 deletions

View File

@ -27,7 +27,7 @@ $target_rest = $target_civicrm . '/sites/all/modules/civicrm/extern/rest.php
$target_url = $target_civicrm . '/sites/all/modules/civicrm/extern/url.php'; $target_url = $target_civicrm . '/sites/all/modules/civicrm/extern/url.php';
$target_open = $target_civicrm . '/sites/all/modules/civicrm/extern/open.php'; $target_open = $target_civicrm . '/sites/all/modules/civicrm/extern/open.php';
$target_file = $target_civicrm . '/sites/default/files/civicrm/persist/'; $target_file = $target_civicrm . '/sites/default/files/civicrm/persist/';
$target_viewmail = $target_civicrm . '/civicrm/mailing/view'; $target_mail = $target_civicrm . '/civicrm/mailing/view';

View File

@ -11,7 +11,7 @@ require_once "config.php";
require_once "proxy.php"; require_once "proxy.php";
// see if mail open tracking is enabled // see if mail open tracking is enabled
if (!$target_viewmail) civiproxy_http_error("Feature disabled", 405); if (!$target_mail) civiproxy_http_error("Feature disabled", 405);
// basic check // basic check
civiproxy_security_check('viewmail'); civiproxy_security_check('viewmail');
@ -19,4 +19,4 @@ civiproxy_security_check('viewmail');
// basic restraints // basic restraints
$valid_parameters = array( 'id' => 'int' ); $valid_parameters = array( 'id' => 'int' );
$parameters = civiproxy_get_parameters($valid_parameters); $parameters = civiproxy_get_parameters($valid_parameters);
civiproxy_redirect($target_viewmail, $parameters); civiproxy_redirect($target_mail, $parameters);