Skip to content

Commit 0e15eac

Browse files
committed
fix: security when loading a class
Signed-off-by: Thierry Bugier <[email protected]>
1 parent e6e429e commit 0e15eac

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

inc/exportableinterface.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
* ---------------------------------------------------------------------
3030
*/
3131

32+
if (!defined('GLPI_ROOT')) {
33+
die("Sorry. You can't access this file directly");
34+
}
35+
3236
interface PluginFormcreatorExportableInterface
3337
{
3438
/**

inc/linker.class.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@
2929
* ---------------------------------------------------------------------
3030
*/
3131

32+
if (!defined('GLPI_ROOT')) {
33+
die("Sorry. You can't access this file directly");
34+
}
35+
3236
class PluginFormcreatorLinker
3337
{
3438
private $imported = [];

0 commit comments

Comments
 (0)