Skip to content

Commit

Permalink
Fixed redirect to /install/ which relied on Controller::absolutize() …
Browse files Browse the repository at this point in the history
…with no site_domain set
  • Loading branch information
jbroadway committed Sep 25, 2016
1 parent 41c6189 commit e885cb2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/admin/handlers/error.php
Expand Up @@ -10,7 +10,12 @@
*/

if ($this->data['code'] == 404 && @file_exists ('install') && (! @file_exists ('conf/installed') && ! @file_exists ('install/installed'))) {
$this->redirect ('install/');
if (strpos ($_SERVER['REQUEST_URI'], '/') !== false) {
header ('Location: /install/');
} else {
header ('Location: install/');
}
exit;
}

header ('HTTP/1.1 ' . $this->data['code'] . ' ' . $this->data['title']);
Expand Down

0 comments on commit e885cb2

Please sign in to comment.