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

Fix bad image URL in server browsing dialog box #690

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

intersel
Copy link

@intersel intersel commented Nov 18, 2022

As path directory may be a symbolic link in $_SERVER['DOCUMENT_ROOT'], the URL of pictures in the dialog box browsing images on the server may be wrongly solved....

To get the correct relative path from $document_root, we need to use php realpath function to remove it and solve correctly the relative path

As path directory may be symbolic link in $_SERVER['DOCUMENT_ROOT'], to remove it from $$document_root we need to use realpath to solve correctly the path
@intersel intersel changed the title use of realpath to resolve properly relative_dir Fix bad image URL in server browsing dialog box Nov 18, 2022
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

Successfully merging this pull request may close these issues.

1 participant