Ticket #1351 (closed defect: wontfix)
ExtendedFileManager, wrong iframeUrl on SSL proxy sites
| Reported by: | guest | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | 0.96 |
| Component: | Plugins | Version: | trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
When i use an SSL proxy from 1und1 or hosteurope, the ExtendedFileManager doesn´t work. It is because the iframeUrl is set wrong, because it uses the
$_SERVER["PHP_SELF"]
. For example
https://ssl.webpack.de/mydomain.de/phpinfo.php
shows me that
$_SERVER["PHP_SELF"]
is "/phpinfo.php" instead of "/mydomain.de/phpinfo.php"
So i maked a small fix for my own.
I changed the config.inc.php of the EFM:
require_once(realpath(dirname(__FILE__) . '/../../contrib/php-xinha.php'));
if($passed_data = xinha_read_passed_data())
{
$IMConfig = array_merge($IMConfig, $passed_data);
$IMConfig['backend_url'] .= xinha_passed_data_querystring() . '&';
/* START this is new */
if(!empty($IMConfig['php_self_prefix'])) {
$_SERVER["PHP_SELF"] = $IMConfig['php_self_prefix'].$_SERVER["PHP_SELF"];
}
/* END this is new */
}
now i only have to define
$IMConfig['php_self_prefix']
for example
$IMConfig['php_self_prefix'] = '/mydomain.de'
I and hope that this will be fixed for further versions or will help some one.
Change History
Note: See
TracTickets for help on using
tickets.
