Skip to content
Snippets Groups Projects
Commit c3fe3e7b authored by Carsten  Rose's avatar Carsten Rose
Browse files

Resinset check for PHP_INI fopen flag. Refs #6596.

parent e027bbc9
No related branches found
No related tags found
1 merge request!92Feature #6596 uid ExcelExport / PDF
Pipeline #999 passed
......@@ -40,6 +40,11 @@ class DownloadPage {
$page = $baseUrl . $page;
}
// Check php.ini
if (ini_get('allow_url_fopen') != '1') {
throw new UserReportException("php.ini: 'allow_url_fopen' is off and needs to be open to get '$page''", ERROR_DOWNLOAD_FOPEN_BLOCKED);
}
// Download page
$ctx = array(
"ssl" => array(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment