From: Arjen v. B. <boc...@fe...> - 2009-04-12 19:44:43
|
I am reluctant to submit this as a bug, because I would have imagined others would have noticed it before me, but I think there is something not quite right with the redirect from index.php I run phpESP from the root (eg. http://survey.example.com), therefore dirname($s['SCRIPT_NAME']) is not a directory but a single slash. As a result the following code $url = sprintf('%s://%s%s%s%s', $proto, $s['SERVER_NAME'], $port, dirname($s['SCRIPT_NAME']), '/admin/manage.php'); header("Location: $url"); redirects to http://survey.example.com//admin/manage.php The double slash results in the following page to links that point to http://admin/manage.php which obviously does not resolve to my domain. Maybe related is the following: I have this line in phpESP.ini.php $ESPCONFIG['base_url'] = $ESPCONFIG['proto'] . $server['HTTP_HOST'] . '/'; but all links I see in the Management Interface are relative. Arjen van Bochoven http://thebluebus.nl |