added file cache restrictions and mail view
This commit is contained in:
parent
77b0f506fb
commit
5af6e1df18
|
|
@ -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_open = $target_civicrm . '/sites/all/modules/civicrm/extern/open.php';
|
||||
$target_file = $target_civicrm . '/sites/default/files/civicrm/persist/';
|
||||
$target_viewmail = $target_civicrm . '/civicrm/mailing/view';
|
||||
$target_mail = $target_civicrm . '/civicrm/mailing/view';
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ require_once "config.php";
|
|||
require_once "proxy.php";
|
||||
|
||||
// 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
|
||||
civiproxy_security_check('viewmail');
|
||||
|
|
@ -19,4 +19,4 @@ civiproxy_security_check('viewmail');
|
|||
// basic restraints
|
||||
$valid_parameters = array( 'id' => 'int' );
|
||||
$parameters = civiproxy_get_parameters($valid_parameters);
|
||||
civiproxy_redirect($target_viewmail, $parameters);
|
||||
civiproxy_redirect($target_mail, $parameters);
|
||||
|
|
|
|||
Loading…
Reference in New Issue