Skip to content

Commit

Permalink
fix: リファラー取得の条件修正
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nakajima committed Dec 27, 2019
1 parent de48d2a commit 83327d1
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Controller/FramesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function add() {
} elseif (!empty($plugin['Plugin']['default_setting_action'])) {
list($controller, $action) = explode('/', $plugin['Plugin']['default_setting_action']);
} else {
return $this->redirect($this->request->referer());
return $this->redirect($this->request->referer(true));
}

$url = array(
Expand All @@ -101,7 +101,7 @@ public function add() {
return $this->redirect($url);
}

$this->redirect($this->request->referer());
$this->redirect($this->request->referer(true));
}

/**
Expand All @@ -126,7 +126,7 @@ public function delete() {
return $this->throwBadRequest();
}

$parseUrl = parse_url($this->request->referer());
$parseUrl = parse_url($this->request->referer(true));
if (isset($parseUrl['query'])) {
$match = [];
if (preg_match('/page_id=([0-9]+)/', $parseUrl['query'], $match)) {
Expand All @@ -141,7 +141,7 @@ public function delete() {
return $this->redirect($permalink);
}
}
$this->redirect($this->request->referer());
$this->redirect($this->request->referer(true));
}

/**
Expand Down Expand Up @@ -224,7 +224,7 @@ public function edit() {
if (Hash::get($this->request->data, '_Frame.redirect')) {
$url = Hash::get($this->request->data, '_Frame.redirect');
} else {
$url = $this->request->referer();
$url = $this->request->referer(true);
$this->NetCommons->setFlashNotification(
__d('net_commons', 'Successfully saved.'), array('class' => 'success')
);
Expand Down Expand Up @@ -259,6 +259,6 @@ public function order() {
if (! $this->Frame->saveWeight($frame, $order)) {
return $this->throwBadRequest();
}
$this->redirect($this->request->referer());
$this->redirect($this->request->referer(true));
}
}

0 comments on commit 83327d1

Please sign in to comment.