mirror of
https://github.com/prasathmani/tinyfilemanager.git
synced 2026-04-26 10:55:56 +03:00
[GH-ISSUE #1007] path is incorrect #652
Labels
No labels
Feature
Feature
Is It Really an Issue?
Need More Info
Request
Security
bug
duplicate
enhancement
enhancement
help wanted
invalid
pull-request
question
suggestion
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tinyfilemanager#652
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tonycstech on GitHub (Apr 3, 2023).
Original GitHub issue: https://github.com/prasathmani/tinyfilemanager/issues/1007
Full path: /home/tonytdyu/public_html/img/GHSDCS/3mm Pump Port Set.JPG
When i click to open the file, it upens
http://www.myurl.com/GHSDCS/3mm%20Pump%20Port%20Set.JPG
which is wrong. The "img" folder is no longer take into acount.
For that same reason, i cannot do anything with the any files.
It works only when i change
$http_host = $_SERVER['HTTP_HOST'].'/img';
but if i do, i no longer able to access the php script because its in the root and not inside img folder
All i changed was: $root_path = $_SERVER['DOCUMENT_ROOT'].'/img'; so that browser is navigated into "img" folder by default.
Thats where i need to force user to start with and never be able to go up higher in the tree
What am i doing wrong ?
@tonycstech commented on GitHub (Apr 3, 2023):
fixed by changing
$root_url = '/img';