Skip to content

Commit

Permalink
Merge pull request #550 from atm-corentin/FIX/SUPPORT/DA025922/SetSpe…
Browse files Browse the repository at this point in the history
…cialCharacter

FIX - Ajout d'un caractère spécial pour faire fonctionner des extrafields - DA025922
  • Loading branch information
ATM-NicolasV authored Dec 30, 2024
2 parents 3741076 + dff9d73 commit f0c150b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog_cdcconseil
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
- FIX/SUPPORT/DA025922/SetSpecialCharacter because the character '<' was not set into the whitelist of special character which causes an issue when you try to fetch this type of extrafields - *30/12/2024*
- FIX/SUPPORT/DA025737/HIDDEN_DROPDOWN - *19/12/2024*
- FIX/SUPPORT/DA025871/FiltreEvalListe - **16/12/2024**
- FIX/SUPPORT/DA025787/HRM_closed_job_position_on_application - *04/12/2024*
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/lib/functions.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -10308,7 +10308,7 @@ function dol_eval($s, $returnvalue = 1, $hideerrors = 1, $onlysimplestring = '1'
// We must accept with 2: (($reloadedobj = new Task($db)) && ($reloadedobj->fetchNoCompute($object->id) > 0) && ($secondloadedobj = new Project($db)) && ($secondloadedobj->fetchNoCompute($reloadedobj->fk_project) > 0)) ? $secondloadedobj->ref : "Parent project not found"

// Check if there is dynamic call (first we check chars are all into use a whitelist chars)
$specialcharsallowed = '^$_+-.*>&|=!?():"\',/@';
$specialcharsallowed = '^$_+-.*><&|=!?():"\',/@';
if ($onlysimplestring == '2') {
$specialcharsallowed .= '[]';
}
Expand Down

0 comments on commit f0c150b

Please sign in to comment.