Page 1 of 1

Little bug with TinyMCE (file upload popup) and default config.php

Posted: Fri Aug 29, 2008 11:00 am
by blast2007
I discovered this little bug (and workaround)
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}
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:
$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';
Any suggestions / hints?
Can this problem solved in core files?

Maybe in CMSMS administration panel could be added an option with "force SSL login"?

regards
blast

Re: Little bug with TinyMCE (file upload popup) and default config.php

Posted: Fri Aug 29, 2008 11:17 am
by Ziggywigged
I had the same issue but alby found a solution. See: http://forum.cmsmadesimple.org/index.php/topic,24618.msg119937.html#msg119937

[SOLVED] Re: Little bug with TinyMCE (file upload popup) and default config.php

Posted: Fri Aug 29, 2008 11:22 am
by blast2007
Ziggywigged wrote: I had the same issue but alby found a solution. See: http://forum.cmsmadesimple.org/index.php/topic,24618.msg119937.html#msg119937
Thanks. I thought to be #1 :)

What do you think of my last suggestion (include in the core SSL login option)?

regards
blast

Re: [SOLVED] Re: Little bug with TinyMCE (file upload popup) and default config.php

Posted: Fri Aug 29, 2008 12:02 pm
by Ziggywigged
blast2007 wrote: What do you think of my last suggestion (include in the core SSL login option)?
Sure, I'm all for it.