From 5af6e1df188f84ca7b48a48411027ed484a99783 Mon Sep 17 00:00:00 2001 From: systopia Date: Fri, 13 Feb 2015 11:14:53 +0100 Subject: [PATCH] added file cache restrictions and mail view --- proxy/config.php | 2 +- proxy/mail.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/proxy/config.php b/proxy/config.php index 0974888..4284560 100644 --- a/proxy/config.php +++ b/proxy/config.php @@ -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'; diff --git a/proxy/mail.php b/proxy/mail.php index f29265c..cffd40f 100644 --- a/proxy/mail.php +++ b/proxy/mail.php @@ -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);