Little bug with TinyMCE (file upload popup) and default config.php
Posted: Fri Aug 29, 2008 11:00 am
I discovered this little bug (and workaround)
Here bug description:
Inside my directory /admin there is an .htaccess file like this
Every user is forced to login with a SSL connection (hope this feature will be included by default in future release).
With this configuration, TinyMCE file upload popup takes wrong urls path and doesn't work at all, pointing to wrong urls.
My workaround for config.php is this:
Can this problem solved in core files?
Maybe in CMSMS administration panel could be added an option with "force SSL login"?
regards
blast
Here bug description:
Inside my directory /admin there is an .htaccess file like this
Code: Select all
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
With this configuration, TinyMCE file upload popup takes wrong urls path and doesn't work at all, pointing to wrong urls.
My workaround for config.php is this:
Any suggestions / hints?$config['root_url'] = 'http://www.mysite.com';
$config['plain_root_url'] = $config['root_url'];
if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']=='on')
{
$config['root_url'] = str_replace('http','https',$config['root_url']);
}
...
...
$config['image_uploads_url'] = $config['root_url'] $config['plain_root_url'] . '/uploads/images';
Can this problem solved in core files?
Maybe in CMSMS administration panel could be added an option with "force SSL login"?
regards
blast