Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

after login the user is redirected to the directory and not to the (renamed) tinyfilemanager.php #1180

Open
BlackBrix opened this issue May 12, 2024 · 1 comment

Comments

@BlackBrix
Copy link

BlackBrix commented May 12, 2024

after update to 2.5.3:
after the user has logged in with his credentials,
he is redirected to to the directory and not to the (renamed) tinyfilemanager.php.

I renamed "tinyfilemanager.php" to "pro_filer.php"
in my case "pro_filer.php" is located in the directory "https://myDomain.tld/upload/uploads/"
so when calling "https://myDomain.tld/upload/uploads/pro_filer.php"
the login dialog appears in the browser.
The user fills in his known credentials, and hits the "sign in" button

doing so the user should be redirected to "https://myDomain.tld/upload/uploads/pro_filer.php" , right ?
instead he is redirected to the bare directory "https://myDomain.tld/upload/uploads/"
where a "forbidden" page appears in the browser since there is no index.* file (or whatsoever) in this directory

(Then if I again type in manually "https://myDomain.tld/upload/uploads/pro_filer.php" in the browser,
I get into the tinyfilemanager GUI being logged in and can work normally ...)

I did not have this problem with 2.5.0 (same server / same directory)


my configuration is (was the same in 2.5.0):

// Root path for file manager
// use absolute path of directory i.e: '/var/www/folder' or $_SERVER['DOCUMENT_ROOT'].'/folder'
// $root_path = $_SERVER['DOCUMENT_ROOT'];
$root_path = '/home/webpages/XXX/YYY/www/myDomain/upload/uploads';

// Root url for links in file manager.Relative to $http_host. Variants: '', 'path/to/subfolder'
// Will not working if $root_path will be outside of server document root
// $root_url = '';
$root_url = '/upload/uploads';

// Server hostname. Can set manually if wrong
// $_SERVER['HTTP_HOST'].'/folder'
$http_host = $_SERVER['HTTP_HOST'];
@BlackBrix
Copy link
Author

BlackBrix commented May 12, 2024

OK,
I just found out that this (release) version 2.5.3:
https://github.com/prasathmani/tinyfilemanager/releases
is not the same as this version 2.5.3:
https://github.com/prasathmani/tinyfilemanager/blob/master/tinyfilemanager.php
(very confusing -> both the very same version numbers)

so this bug was solved 2 years before:
1f0c853
but is not part of the release from Feb 22, 2023 (1 year old)
https://github.com/prasathmani/tinyfilemanager/releases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant