Author:
bauhouse
Version:
1.0
Released:
14 August 2009
Category:
Membership

New#1: Wrong redirect after login if symphony is not installed in the root dir

I’ve just installed symphony in a subdirectory (domain.com/test). When I login to the members extension using the provided login code, I get redirected to domain.com/test/test.

The error is on line 410 in the extension.driver.php file.

redirect(URL . $_SERVER['REQUEST_URI']);

should become redirect(‘http’ . (defined(‘SECURE’) && SECURE ? ‘s’ : ”) . ‘://’ . rtrim($_SERVER[‘HTTP_HOST’], ‘\/’) . $_SERVER[‘REQUEST_URI’]);

editing doesn’t work.. either way, what I meant to post was:

redirect('http' . (defined('__SECURE__') && __SECURE__ ? 's' : '') . '://' . rtrim($_SERVER['HTTP_HOST'], '\/') . $_SERVER['REQUEST_URI']);

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details