Hi
There is a problem with imagebrowser.php when the website is set on
http://www.domain.com and you login on domain.com ( withouth www ! ), or vice versa (the other way around).
imagebrowser.php does not pass the cookie_check() on non www domain, and the registered $loggedin var is false and when you try to browse for images , it shows blank ( fails login check ) at line 120:
if (!$loggedin) die();
this should also be replaced with
if (!$loggedin) die("Not logged in!");
like in i18n_customfields filebrowser.php
The thing is that I have spend an hour trying to find where the logedin var is lost, only to realize that I was logedin on non www . There is a great chance that the website owner, a client, do the same thing.
One workaround is to redirect non www to www in htaccess, but that is not allways an option.
There is a problem with imagebrowser.php when the website is set on
http://www.domain.com and you login on domain.com ( withouth www ! ), or vice versa (the other way around).
imagebrowser.php does not pass the cookie_check() on non www domain, and the registered $loggedin var is false and when you try to browse for images , it shows blank ( fails login check ) at line 120:
if (!$loggedin) die();
this should also be replaced with
if (!$loggedin) die("Not logged in!");
like in i18n_customfields filebrowser.php
The thing is that I have spend an hour trying to find where the logedin var is lost, only to realize that I was logedin on non www . There is a great chance that the website owner, a client, do the same thing.
One workaround is to redirect non www to www in htaccess, but that is not allways an option.