From af88a5708a7f0576b2bf3ece2d58f39564924b5b Mon Sep 17 00:00:00 2001 From: Edward Date: Tue, 19 Feb 2019 17:59:33 +0800 Subject: [PATCH] Mailer.php Images.php --- Images.php | 2 +- Mailer.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Images.php b/Images.php index 9a890d06..3a4b741b 100644 --- a/Images.php +++ b/Images.php @@ -187,7 +187,7 @@ class Pman_Core_Images extends Pman if (!$id || !$img->get($id)) { $this->imgErr("image has been removed or deleted.",$s); } - print_R($_REQUEST);exit; + if (!$this->authUser && !in_array($img->ontable,$this->public_image_tables)) { if($this->is_email) { diff --git a/Mailer.php b/Mailer.php index a47d3577..1211e4ee 100644 --- a/Mailer.php +++ b/Mailer.php @@ -587,7 +587,8 @@ class Pman_Core_Mailer { require_once 'HTTP/Request.php'; $real_url = str_replace(' ', '%20', $this->mapurl($url)); - $a = new HTTP_Request($real_url, array('is_email' => 1)); + $a = new HTTP_Request($real_url); + $a->addQueryString('is_email', 1); $a->sendRequest(); $data = $a->getResponseBody(); -- 2.39.2