Skip to content

Commit 7d8d7e3

Browse files
LainowRom1-B
andauthored
Add notes search option in BlacklistedOptions (#475)
* Add notes search option in BlacklistedOptions * Update Changelog * Update inc/commoninjectionlib.class.php Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com> --------- Co-authored-by: Romain B. <8530352+Rom1-B@users.noreply.github.com>
1 parent 935714d commit 7d8d7e3

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1818

1919
- Add option to `replace` (instead of `append`) the value of multiline text fields (e.g. `comment`)
2020

21+
### Fixed
22+
23+
- Move `Notepads` search options to the Black List option
24+
2125
## [2.14.1] - 2024-12-27
2226

2327
### Added

inc/commoninjectionlib.class.php

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,22 @@ public static function getBlacklistedOptions($itemtype)
361361
/** @var array $CFG_GLPI */
362362
global $CFG_GLPI;
363363

364-
//2 : id
364+
// 2 : id
365365
// 19 : date_mod
366366
// 80 : entity
367367
// 121 : date_creation
368-
$blacklist = [2, 19, 80, 121, 201, 202, 203, 204];
368+
// 200 : notepad
369+
$blacklist = [
370+
2, // id
371+
19, // last update
372+
80, // completename
373+
121, // creation date
374+
200, // notepad - content
375+
201, // notepad - creation date
376+
202, // notepad - writer
377+
203, // notepad - last update
378+
204, // notepad - last updater
379+
];
369380

370381
$raw_options_to_blacklist = [];
371382

0 commit comments

Comments
 (0)