• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Spain CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Little bug with TinyMCE (file upload popup) and default config.php
PostPosted: Fri Aug 29, 2008 11:00 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Aug 01, 2007 5:36 pm
Posts: 485
I discovered this little bug (and workaround)
Here bug description:

Inside my directory /admin there is an .htaccess file like this

Code:
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:

Quote:
$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.

Top
 Profile  
 
 Post subject: Re: Little bug with TinyMCE (file upload popup) and default config.php
PostPosted: Fri Aug 29, 2008 11:17 am 
Offline
Power Poster
Power Poster

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


Top
 Profile  
 
 Post subject: [SOLVED] Re: Little bug with TinyMCE (file upload popup) and default config.php
PostPosted: Fri Aug 29, 2008 11:22 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Wed Aug 01, 2007 5:36 pm
Posts: 485
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


Top
 Profile  
 
 Post subject: Re: [SOLVED] Re: Little bug with TinyMCE (file upload popup) and default config.php
PostPosted: Fri Aug 29, 2008 12:02 pm 
Offline
Power Poster
Power Poster

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting