Post by Qphoria » Wed May 25, 2022 1:52 am

After installing 4.0, there is an attempt to move files from "admin" to "newadmin" that doesn't work on my server.
I've tracked down the issue to this line (found twice in the admin/controller/common/security.php file):

Code: Select all

foreach (glob(trim($next, '/') . '/{*,.[!.]*,..?*}', GLOB_BRACE) as $file) {
If I change it to this, it works fine but I'm not an expert on all the GLOB options so it may or may not be complete. In any case, it seemed to work for me

Code: Select all

foreach (glob($next . '/{*,.[!.]*,..?*}', GLOB_MARK|GLOB_BRACE) as $file) {
But while it does copy and move to "newadmin" it did not seem to auto-delete the original "admin" folder so there may be another issue with that.

Also I would really like to see this move be optional. I've never been a huge fan of the storage move option. Not that I disagree with the overall idea of moving downloads/uploads to a directory that sits higher than the cart for security, but that only downloads and uploads should be moved there and NOT logs, modification files, etc, but I digress.


User avatar


Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: No registered users and 2 guests