2
0
forked from Wavyzz/dolibarr
Commit Graph

1839 Commits

Author SHA1 Message Date
ldestailleur
9582894136 Add constant SECURITY_WAF_ALLOW_QUOTES_IN_GET in WAF 2025-04-06 18:56:59 +02:00
ldestailleur
3edadbd8b8 Add option MAIN_DISALLOW_STRING_OBFUSCATION_IN_DOL_EVAL. Close #33612 2025-04-01 16:23:50 +02:00
ldestailleur
15f2f4f223 Clean code 2025-04-01 15:21:43 +02:00
ldestailleur
cc8c7b8329 Fix possible remote code execution using dol_concatdesc in dol_eval. To
allow concat char, you can use
MAIN_ALLOW_UNSECURED_SPECIAL_CHARS_IN_DOL_EVAL='.'
2025-04-01 13:25:10 +02:00
ldestailleur
bcf0ef0bc0 Test switch in dol_eval function() 2025-04-01 12:31:27 +02:00
ldestailleur
bb826b9f93 Add more phpunit to aclude lang file with a simple % character. 2025-04-01 10:24:19 +02:00
Lucas Marcouiller
0aa0588f52 New Implements findNearest for societe module (#33643)
* New Implements Find Nearest for societe module

* fix CI

* fix CI
2025-03-28 23:11:01 +01:00
ldestailleur
94ce8346c0 Fix phpunit 2025-03-27 18:56:13 +01:00
ldestailleur
df9fea28f1 Complete #33605 by adding phpunit tests 2025-03-27 10:39:08 +01:00
ldestailleur
33c7378d2d Add phpunit test 2025-03-26 21:01:46 +01:00
ldestailleur
fd0889cebb Test 2025-03-25 22:48:19 +01:00
ldestailleur
507262a1a8 Test fix CI 2025-03-25 22:27:52 +01:00
ldestailleur
b321336562 Test 2025-03-25 21:45:05 +01:00
ldestailleur
7b9b32cb9e Debug pgsql DDLInfoTable 2025-03-25 21:32:28 +01:00
ldestailleur
e028b2325e Test travis 2025-03-25 21:18:50 +01:00
ldestailleur
507e81d819 More logs 2025-03-25 21:11:02 +01:00
ldestailleur
1a4b888f2e Add a test to debug travis error 2025-03-25 20:59:05 +01:00
ldestailleur
9f70a961b0 Comment 2025-03-25 18:36:51 +01:00
ldestailleur
03c4ce1cc3 Fix travis 2025-03-24 21:44:57 +01:00
ldestailleur
bb7ef236c5 Fix travis 2025-03-24 21:43:38 +01:00
ldestailleur
2cb5ec448b Fix travis 2025-03-24 21:42:16 +01:00
ldestailleur
8a89cc3f04 FIX phpunit 2025-03-24 20:52:13 +01:00
ldestailleur
c15f729cc4 Use environment variable instead of hard coded values 2025-03-24 19:24:04 +01:00
ldestailleur
1726312fc3 Fix travis 2025-03-24 18:23:31 +01:00
ldestailleur
d670d67668 Disable test when libxml not good. 2025-03-09 23:37:36 +01:00
ldestailleur
5db341a3e8 Fix phpunit 2025-03-09 22:27:46 +01:00
ldestailleur
202ffe732e Enhance phpunit tests 2025-03-09 21:26:51 +01:00
ldestailleur
8b94a99dd1 Fix contract update method. Add phpunit for TDD. 2025-03-07 16:02:18 +01:00
ldestailleur
7a0e9d4dc1 Accept utf8 chars in the natural_search in mode 3. Close #32930 2025-03-06 04:00:42 +01:00
ldestailleur
caead5de9f Fix protect use of sanitize to make sql injection 2025-03-06 03:29:54 +01:00
ldestailleur
04b0b3d855 FIX in dev for #33324 2025-03-04 20:50:54 +01:00
MDW
edfb385fd7 More explicit reporting for NOT IN sql forge notices 2025-02-22 17:07:37 +01:00
Laurent Destailleur
bc5f62d25b Merge pull request #33140 from mdeweerd/fix/deprecationhandler.isset
Fix: DeprecationHandler, correct isset(), ignore false phpstan positive
2025-02-19 17:44:12 +01:00
MDW
1811ea7e39 Qual: Fix CommanClassTest in case there is no logfile
# Qual: Fix CommanClassTest in case there is no logfile

When running an individual test in the absence of a logfile, the test
did not run properly (setup issues, and tearDown issues on error).

This adds checks that the logfile exists.
2025-02-19 15:56:13 +01:00
MDW
cee100dea4 Update DolDeprecationHandlerTest 2025-02-19 15:53:56 +01:00
Laurent Destailleur (aka Eldy)
d223f8a0b9 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-02-13 20:42:23 +01:00
Laurent Destailleur (aka Eldy)
705164cc9f Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-02-13 20:39:19 +01:00
Laurent Destailleur (aka Eldy)
256e0e0470 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-02-13 20:37:12 +01:00
Laurent Destailleur (aka Eldy)
054010f8ec Fix test 2025-02-13 20:34:55 +01:00
Laurent Destailleur (aka Eldy)
36fd5b7b26 FIX #CVE-2024-34051 2025-02-13 20:29:25 +01:00
Regis Houssin
f3e7e69107 FIX travis error 2025-02-07 16:26:26 +01:00
Laurent Destailleur (aka Eldy)
0772222900 QUAL Add get_substitutionarray_each_var_object in phpunit 2025-02-06 12:04:41 +01:00
Laurent Destailleur (aka Eldy)
e400883ad1 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-02-05 18:32:15 +01:00
Laurent Destailleur (aka Eldy)
61e50f4430 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-02-05 18:30:13 +01:00
Laurent Destailleur (aka Eldy)
cffd5d422e Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-02-05 18:18:55 +01:00
Laurent Destailleur (aka Eldy)
39293b79ff Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-02-05 18:16:40 +01:00
Laurent Destailleur (aka Eldy)
9fc78cd1b6 Fix regression 2025-02-05 18:16:09 +01:00
Laurent Destailleur (aka Eldy)
c4f52d0484 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-02-04 22:51:31 +01:00
MDW
70f9dde739 Qual: Improve lang test + message in case of test exception
# Qual: Improve lang test + message in case of test exception

This fixes the language test enabling the error message itself.
I also improved the Exception handling so that a backtrace is shown to help
find where it happened (here the error message was empty which was strange
and made it harder to find - the (empty(val)?a:b) was lacking parentheses
for proper concatenation
2025-01-30 18:11:41 +01:00
Laurent Destailleur (aka Eldy)
6b38b320bc Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-28 14:01:32 +01:00