Bug when using FRAMESET with CMS made simple.
Posted: Sat May 05, 2007 8:46 am
Hi!
I have used CMS ms for frameset based websites with good results.
I did however find a bug in the file admin/login.php:
The redirect used when login is cancelled is not working properly with framesets.
The faulty code is:
redirect($config["root_url"].'/index.php', true);
The result of this bug is that nested framesets will occure.
The redirect should have adressed the mainpage, like this:
redirect($config["root_url"].'/'.$config["mainpage"], true);
For this to work, a new variable $config["mainpage"] has to be created in config.php.
The default value should be set to 'index.php' , and only changed when using framesets.
This or a similar fix would be greatly appreciated.
GDS
I have used CMS ms for frameset based websites with good results.
I did however find a bug in the file admin/login.php:
The redirect used when login is cancelled is not working properly with framesets.
The faulty code is:
redirect($config["root_url"].'/index.php', true);
The result of this bug is that nested framesets will occure.
The redirect should have adressed the mainpage, like this:
redirect($config["root_url"].'/'.$config["mainpage"], true);
For this to work, a new variable $config["mainpage"] has to be created in config.php.
The default value should be set to 'index.php' , and only changed when using framesets.
This or a similar fix would be greatly appreciated.
GDS