Compare commits

...

1 Commits

2 changed files with 11 additions and 1 deletions

View File

@@ -1739,6 +1739,14 @@ class Config
'source_of_value' => '',
'show_in_conf_sample' => false,
],
'security.disable_inline_images_protection' => [
'type' => 'bool',
'description' => 'If true then the images can be seen with url without authentification. Note that setting this to true it gives insecure access to inline images!',
'default' => false,
'value' => false,
'source_of_value' => '',
'show_in_conf_sample' => false,
],
'security.disable_joined_classes_filter' => [
'type' => 'bool',
'description' => 'If true, scope filters aren\'t applied to joined classes or union classes not directly listed in the SELECT clause.',

View File

@@ -64,7 +64,9 @@ try {
break;
case 'download_inlineimage':
LoginWebPage::DoLoginEx();
if (!MetaModel::GetConfig()->Get('security.disable_inline_images_protection') === true) {
LoginWebPage::DoLoginEx();
}
$id = utils::ReadParam('id', '');
$sSecret = utils::ReadParam('s', '');
$iCacheSec = 31556926; // One year ahead: an inline image cannot change