Skip to content

Commit

Permalink
Fixed insecure links in payment gateways.
Browse files Browse the repository at this point in the history
Updated links for web payment software.

Close #3048
  • Loading branch information
jamesallsup committed May 27, 2015
1 parent 783e089 commit 9c86451
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion upload/admin/controller/payment/amazon_checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function index() {

$data['action'] = $this->url->link('payment/amazon_checkout', 'token=' . $this->session->data['token'], 'SSL');

$data['cancel'] = $this->url->link('extension/payment', 'token=' . $this->session->data['token']);
$data['cancel'] = $this->url->link('extension/payment', 'token=' . $this->session->data['token'], 'SSL');

if (isset($this->request->post['amazon_checkout_merchant_id'])) {
$data['amazon_checkout_merchant_id'] = $this->request->post['amazon_checkout_merchant_id'];
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/controller/payment/amazon_login_pay.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function index() {

$data['action'] = $this->url->link('payment/amazon_login_pay', 'token=' . $this->session->data['token'], 'SSL');

$data['cancel'] = $this->url->link('extension/payment', 'token=' . $this->session->data['token']);
$data['cancel'] = $this->url->link('extension/payment', 'token=' . $this->session->data['token'], 'SSL');

if (isset($this->request->post['amazon_login_pay_merchant_id'])) {
$data['amazon_login_pay_merchant_id'] = $this->request->post['amazon_login_pay_merchant_id'];
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/controller/payment/securetrading_pp.php
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ public function index() {

$data['action'] = $this->url->link('payment/securetrading_pp', 'token=' . $this->session->data['token'], 'SSL');

$data['cancel'] = $this->url->link('extension/payment', 'token=' . $this->session->data['token']);
$data['cancel'] = $this->url->link('extension/payment', 'token=' . $this->session->data['token'], 'SSL');

$data['header'] = $this->load->controller('common/header');
$data['column_left'] = $this->load->controller('common/column_left');
Expand Down
2 changes: 1 addition & 1 deletion upload/admin/controller/payment/securetrading_ws.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public function index() {

$data['action'] = $this->url->link('payment/securetrading_ws', 'token=' . $this->session->data['token'], 'SSL');

$data['cancel'] = $this->url->link('extension/payment', 'token=' . $this->session->data['token']);
$data['cancel'] = $this->url->link('extension/payment', 'token=' . $this->session->data['token'], 'SSL');

$data['myst_status'] = !empty($data['securetrading_ws_csv_username']) && !empty($data['securetrading_ws_csv_password']);
$data['hours'] = array();
Expand Down
5 changes: 2 additions & 3 deletions upload/admin/controller/payment/web_payment_software.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,8 @@ public function index() {
'href' => $this->url->link('payment/web_payment_software', 'token=' . $this->session->data['token'], 'SSL')
);

$data['action'] = HTTPS_SERVER . 'index.php?route=payment/web_payment_software&token=' . $this->session->data['token'];

$data['cancel'] = HTTPS_SERVER . 'index.php?route=extension/payment&token=' . $this->session->data['token'];
$data['action'] = $this->url->link('payment/web_payment_software', 'token=' . $this->session->data['token'], 'SSL');
$data['cancel'] = $this->url->link('extension/payment', 'token=' . $this->session->data['token'], 'SSL');

if (isset($this->request->post['web_payment_software_login'])) {
$data['web_payment_software_merchant_name'] = $this->request->post['web_payment_software_merchant_name'];
Expand Down

0 comments on commit 9c86451

Please sign in to comment.