Skip to content

Commit

Permalink
fix some page redirection anomalies
Browse files Browse the repository at this point in the history
(cherry picked from commit 2dcb856)
  • Loading branch information
dleffler committed Nov 12, 2016
1 parent 8e4e34d commit 228cf3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/core/subsystems/expRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ public function routePageRequest() {
$redirectObject->new_sef_name = $page_redirect->new_sef_name;
$db->insertObject($redirectObject, 'redirect');
$_REQUEST['section'] = $section->id;
$type = !empty($page_redirect->type) ? $page_redirect->type : 200;
$type = !empty($page_redirect->type) ? intval($page_redirect->type) : 200;
header("Location: " . $this->makeLink(array('section' => intval($_REQUEST['section']))), TRUE, $type);
}
}
Expand Down

0 comments on commit 228cf3b

Please sign in to comment.