From f31d2ad2a359e7009881a9ccb48f812794a42a23 Mon Sep 17 00:00:00 2001 From: Dmitry Serzhenko Date: Thu, 29 Dec 2022 19:05:39 +0300 Subject: [PATCH] Update API endpoints to secure ones --- system/application/libraries/Postmark.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/system/application/libraries/Postmark.php b/system/application/libraries/Postmark.php index fe88dec..96e773f 100644 --- a/system/application/libraries/Postmark.php +++ b/system/application/libraries/Postmark.php @@ -538,11 +538,11 @@ function send($from_address = null, $from_name = null, $to_address = null, $to_n $ch = curl_init(); if (is_null($this->_template_id)) { - curl_setopt($ch, CURLOPT_URL, 'http://api.postmarkapp.com/email'); + curl_setopt($ch, CURLOPT_URL, 'https://api.postmarkapp.com/email'); } else { - curl_setopt($ch, CURLOPT_URL, 'http://api.postmarkapp.com/email/withTemplate'); + curl_setopt($ch, CURLOPT_URL, 'https://api.postmarkapp.com/email/withTemplate'); } curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);