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

A place to discuss the testing process in beta cycles or against SVN for the CMS Made Simple CORE package.
Locked
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

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

Post 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
Last edited by blast2007 on Fri Aug 29, 2008 11:16 am, edited 1 time in total.
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am
Location: USA

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

Post by Ziggywigged »

I had the same issue but alby found a solution. See: http://forum.cmsmadesimple.org/index.php/topic,24618.msg119937.html#msg119937
Take a penny, leave a penny.
User avatar
blast2007
Power Poster
Power Poster
Posts: 508
Joined: Wed Aug 01, 2007 5:36 pm

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

Post 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
Ziggywigged
Power Poster
Power Poster
Posts: 424
Joined: Sat Feb 02, 2008 12:42 am
Location: USA

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

Post 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.
Take a penny, leave a penny.
Locked

Return to “[locked] Quality Assurance”