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

Images are not showing if webserver is not running on default ports #209

Open
lewissme opened this issue Jun 19, 2024 · 1 comment
Open

Comments

@lewissme
Copy link

on base.php line 65 have this:
// check if webserver is not running on default port
if ($_SERVER['SERVER_PORT'] != 80 || $_SERVER['SERVER_PORT'] != 443) {
$baseUrl .= ':' . safe_get_env('SERVER_PORT');
}

The problem is if i have the webserver on port 4430 and in my router i forward the external port 974 to internal 4430, the images will be generate this wrong sources:
https://site.com:974:4430/dotproject/modules/projects/images/applet3-48.png

@rafaelqg
Copy link

Maybe the faster way to solve that is adjusting this part of the code...
Looks your URL has two ports defined, than it does not access. Mabe a simple string replace, removing the undesired port, can fix that while a more flexible solution is not available.

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

2 participants