This commit is contained in:
Laurent Destailleur 2026-04-23 13:53:09 +02:00
parent 9b6368b2a9
commit c4b2d3ebbd
2 changed files with 4 additions and 6 deletions

View file

@ -2,10 +2,6 @@
English Dolibarr ChangeLog
--------------------------------------------------------------
***** ChangeLog for 23.0.3 compared to 23.0.2 *****
FIX: IDOR on messaging.php - credit Aksoum Abderrahmane
***** ChangeLog for 24.0.0 compared to 23.0 *****
For users:
@ -26,6 +22,8 @@ The following changes may create regressions for some external modules, but were
* Now use a default salt for online signature securekey. Old links may be wrong if not salt was set before.
* Login API are off by default (API must be used with the bearer token). Must set API_ENABLE_LOGIN_API to have them enabled.
* Renamed hidden var DEPOSIT_AS_CREDIT_AVAILABLE_EVEN_UNPAID into DEPOSIT_CAN_BE_CONVERTED_AS_AVAILABLE_CREDIT_EVEN_IF_NOT_YET_PAID
* The substitution variable __MYCOUNTRY_ID__ has been removed (duplicate of standard __MYCOMPANY_COUNTRY_ID__).
***** ChangeLog for 23.0.2 compared to 23.0.1 *****

View file

@ -509,12 +509,12 @@ class SecurityGETPOSTTest extends CommonClassTest
// Test substitution in GET url
$user->fk_user = 999;
$mysoc->country_id = 1;
$_GET['paramtestsubstit'] = 'XXX __NOTDEFINED__ XXX __USER_SUPERVISOR_ID__ XXX __MYCOMPANY_COUNTRY_ID__ XXX __MYCOUNTRY_ID__ XXX';
$_GET['paramtestsubstit'] = 'XXX __NOTDEFINED__ XXX __USER_SUPERVISOR_ID__ XXX __MYCOMPANY_COUNTRY_ID__ XXX';
// Test that links not on wrapper and not data are disallowed
$result = GETPOST("paramtestsubstit", 'alphanohtml');
print __METHOD__." result=".$result."\n";
$this->assertEquals('XXX __NOTDEFINED__ XXX 999 XXX 1 XXX 1 XXX', $result, 'Failed to do conversion');
$this->assertEquals('XXX __NOTDEFINED__ XXX 999 XXX 1 XXX', $result, 'Failed to do conversion');
return $result;