mirror of
https://github.com/Combodo/iTop.git
synced 2026-10-15 21:08:55 +02:00
Compare commits
1 Commits
develop
...
issue/1020
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b8ec35eb3d |
@@ -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.',
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user