Skip to content

Fix bad image URL in server browsing dialog box#690

Open
intersel wants to merge 1 commit into
turnermm:masterfrom
intersel:master
Open

Fix bad image URL in server browsing dialog box#690
intersel wants to merge 1 commit into
turnermm:masterfrom
intersel:master

Conversation

@intersel
Copy link
Copy Markdown

@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