MantisBT: master 810303b0

Author Committer Branch Timestamp Parent
dregad dregad master 2025-03-07 18:56 master 5ae0ba0e
Affected Issues  0035540: A clean installation ends with Internal Server Error with no message/detail given
Changeset

Prevent internal application error in url_get()

When allow_url_fopen = OFF, curl extension is not installed, url_get()
falls back to a shell_exec() call to run curl, but if shell_exec()
function is disabled in php.ini, then an internal application error is
thrown.

This checks that shell_exec() function exists before calling it, and
returns null if not.

Fixes 0035540

mod - core/url_api.php Diff File