Laurent Destailleur (aka Eldy)
7b4946b146
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop
2025-01-09 13:03:44 +01:00
tnegre
7e82f70c77
add case when HTML tags contain attributes
2025-01-09 11:05:45 +01:00
Laurent Destailleur (aka Eldy)
8e551100a1
Fix typo
2025-01-09 01:41:24 +01:00
Laurent Destailleur (aka Eldy)
599d891284
Restore lines commented for test
2025-01-08 18:24:46 +01:00
Laurent Destailleur (aka Eldy)
79ae59ee2a
Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop
2025-01-08 17:54:13 +01:00
Laurent Destailleur (aka Eldy)
c0250e4c91
FIX CVE-2024-55227 CSRF when MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY is
...
on (hidden option not on by default)
2025-01-08 17:41:45 +01:00
Laurent Destailleur (aka Eldy)
3bfd6c1e30
Debug MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY
2025-01-06 12:56:24 +01:00
tnegre
61b03b0c05
Testing ODF : revert parameters order for assertEquals()
2025-01-06 09:44:04 +01:00
tnegre
112220da86
BUG: when there are two identical HTML tags in a substitution string, everything is taken between first opening tag and last closing tag. Write test to reproduce.
2025-01-06 09:44:04 +01:00
Laurent Destailleur (aka Eldy)
9a61a6e6c9
Update files after moving build into dev/
2025-01-05 14:46:26 +01:00
Laurent Destailleur (aka Eldy)
4d02eca12a
Debug v21
2024-12-31 16:56:59 +01:00
Laurent Destailleur (aka Eldy)
8733e9d57e
Fix security test blocking $_SESSION...
2024-12-26 15:43:29 +01:00
Laurent Destailleur (aka Eldy)
fcc344f9da
Security - More robust dol_eval function after vulnerability report by
...
Muhammad Zeeshan (Xib3rR4dAr)
2024-12-26 15:43:29 +01:00
Laurent Destailleur (aka Eldy)
7f4b2b08b4
Complete phpunit and tests to avoid use of non expected function
2024-12-18 19:00:33 +01:00
Laurent Destailleur (aka Eldy)
27ac538e74
Fix security. Make bypass of checkPHPCode more difficult
2024-12-18 15:55:00 +01:00
Alexandre Janniaux
24ef798202
phpunit: AllTest: register new accountancysystem test
2024-12-04 08:10:37 +01:00
Alexandre Janniaux
b75db7015e
test: phpunit: add AccountancySystemTest
...
The test check that we can create and fetch items correctly. Commented
implemented for update and delete are provided but currently useless
since no implemented of update/delete are present in AccountancySystem.
Testing object creation without having object deletion is still useful
for tests purpose, since objects created in an accountancy tests would
involve the accountancy system and using an existing one could lead to
uniqueness errors, whereas creating new ones ensure the
AccountingAccount can be created regardless.
2024-12-04 08:10:37 +01:00
Laurent Destailleur
c2a3a93342
Debug v21 - renameto avoid future conflit
2024-11-24 14:58:40 +01:00
Laurent Destailleur
1d1c381e98
Fix message
2024-11-14 01:44:13 +01:00
Frédéric FRANCE
9067c6deec
replace deprecated ( #31803 )
...
* replace deprecated
* replace deprecated
2024-11-14 00:16:43 +01:00
Laurent Destailleur
2b764e52b1
Add assertion on this test
2024-11-13 21:37:55 +01:00
Frédéric FRANCE
e5320c2302
fix phpstan ( #31801 )
...
* fix phpstan
* fix phpstan
* fix phpstan
* add phpdoc
* add phpdoc
* add phpdoc
* add phpdoc
* add phpdoc
* add phpdoc
2024-11-13 21:21:15 +01:00
Laurent Destailleur
f8d5cfbb3b
Fix phpunit
2024-11-09 17:21:23 +01:00
Laurent Destailleur
13ce7cfd04
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-11-06 20:17:14 +01:00
Laurent Destailleur
b7821bde26
FIX the autofix corrupted vat value must be triggered only if we are
...
sure data is corrupted.
FIX the autofix must also fix the multicurrency value.
2024-11-06 16:17:51 +01:00
Laurent Destailleur
eaf92c9fa4
FIX better regex to detect substitution key
2024-10-30 19:53:40 +01:00
Laurent Destailleur
e6f1d4835f
Clean sql code
2024-10-29 02:58:20 +01:00
Frédéric FRANCE
0f563edb5f
replace fetch_projet() and fetch_project() by fetchProject() ( #29821 )
...
* fix cti
* fix cti
* deprecate fetch_projet fetch_project to fetchProject
* deprecate fetch_projet fetch_project to fetchProject
* deprecate fetch_projet fetch_project to fetchProject
* odfHandler->setSegment only throw OdfExceptionSegmentNotFound
* odfHandler->setSegment only throw OdfExceptionSegmentNotFound
* fix deprecated
* fix
* fix sql
2024-10-26 22:43:44 +02:00
Laurent Destailleur
38fa5d28db
Debug v21
2024-10-26 20:03:22 +02:00
Carmine Di Gruttola
d71b48d22f
fix on restpitest clas to use the generic abstract rest api ( #31330 )
...
Co-authored-by: Carmine Di Gruttola <carmine.di.gruttola@pwc.com>
2024-10-13 20:30:11 +02:00
Laurent Destailleur
33aabd271c
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-10-09 00:17:03 +02:00
Laurent Destailleur
67156d03ca
Fix phpunit
2024-10-09 00:13:56 +02:00
Laurent Destailleur
58cc96cd33
QUAL All $conf->global->module->enabled are replaced with isModEnabled()
2024-10-07 14:40:29 +02:00
Laurent Destailleur
e09d9df3ee
QUAL Move function csvClean into functions2.lib.php
2024-10-03 21:36:39 +02:00
Frédéric FRANCE
44fdcdd8ed
can set position of file with dol_move ( #31201 )
...
* can set position of file with dol_move
* Update api_documents.class.php
* Update api_documents.class.php
* fix
* fix
* fix
* fix
* fix
2024-09-30 16:49:38 +02:00
Laurent Destailleur
d7d8f87045
Clean code. Add permission test after action = something.
2024-09-30 11:38:29 +02:00
Laurent Destailleur
f966523f79
Restore default pdf format to default
2024-09-26 04:37:44 +02:00
Laurent Destailleur
2ad1c61976
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-09-15 12:33:25 +02:00
Laurent Destailleur
3ee51d5311
Add test on domain .entreprises
2024-09-15 11:24:34 +02:00
Laurent Destailleur
3025f7ba25
NEW Add getImageFromHtmlContent() method
2024-09-14 01:36:31 +02:00
Laurent Destailleur
4a303a61d1
More robust test on missing permission for CTI
2024-09-13 11:13:38 +02:00
Laurent Destailleur
75d62b5f0a
Fix check on permissions
2024-09-13 04:47:07 +02:00
Laurent Destailleur
9ad77cb934
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-09-09 16:51:44 +02:00
Laurent Destailleur
e4fda210d7
Fix sync transife
2024-09-09 16:51:26 +02:00
Laurent Destailleur
b8aa7e2511
Fix option restricthtmlallowlinkscript of GETPOST
2024-09-09 15:56:47 +02:00
Laurent Destailleur
b27460910a
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-09-07 20:26:22 +02:00
Laurent Destailleur
77a76aad7a
Fix test on permissions
2024-09-06 17:36:50 +02:00
Laurent Destailleur
0f979a31f3
Fix on permission test
2024-09-06 16:47:50 +02:00
Laurent Destailleur
b02a891f2f
Enhance the protection on missing permissions
2024-09-06 15:49:57 +02:00
Laurent Destailleur
6af16694cc
NEW Add test to forbidden NOW() SQL function.
2024-09-05 13:22:19 +02:00
Laurent Destailleur
8cdef1d713
NEW Activate PHPUnit with tests on permission on $action ==...
2024-09-03 16:33:02 +02:00
Laurent Destailleur
c79f72f785
Fix missing tests on permissions
2024-09-03 16:19:18 +02:00
Laurent Destailleur
2e2ab9d84d
Fix missing test on permissions
2024-09-01 13:48:58 +02:00
Laurent Destailleur
815352e8f9
Fix permission on delete token
2024-08-31 19:26:46 +02:00
Laurent Destailleur
827c3daa03
Fix test on permissions
2024-08-31 19:15:14 +02:00
Laurent Destailleur
c4c55b00fd
Fix permissions tests
2024-08-31 18:38:16 +02:00
Laurent Destailleur
c30d706ab6
Add more phpunit tests
2024-08-31 18:11:16 +02:00
Laurent Destailleur
d094a57bad
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-08-31 17:32:23 +02:00
Laurent Destailleur
a5c786fe6e
Fix not yed ready for v20
2024-08-31 17:31:30 +02:00
Laurent Destailleur
2009c6f09a
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-08-31 17:30:32 +02:00
Laurent Destailleur
b8dadd4b6a
Debug v20 Fix missing test on permissions
2024-08-31 17:23:13 +02:00
Laurent Destailleur
2c28d039e2
Fix test on permissions
2024-08-31 16:26:08 +02:00
Laurent Destailleur
1e3a860767
Fix test on permissions
2024-08-31 16:01:27 +02:00
Laurent Destailleur
ee6779dbcf
Clean code
2024-08-31 15:08:17 +02:00
hansemschnokeloch
4849e04fc9
Fix #29292 ( #30720 )
...
* fix #2810
* Fix #29292
2024-08-23 15:27:55 +02:00
hansemschnokeloch
cfb44ce196
Fix #29292 ( #30720 )
...
* fix #2810
* Fix #29292
2024-08-23 15:27:10 +02:00
Laurent Destailleur
34fefcaeb2
Clean code
2024-08-01 12:46:30 +02:00
Laurent Destailleur
46cde6431a
NEW Can use a specific profile to send email for password forgotten
2024-08-01 11:36:21 +02:00
Laurent Destailleur
6428a1d892
Merge branch 'develop' of git@github.com:Dolibarr/dolibarr.git into
...
develop
2024-07-28 15:05:02 +02:00
Laurent Destailleur
8ac368ce17
FIX Better sanitizing for javascript. Fix <> bypass.
2024-07-27 18:07:37 +02:00
Laurent Destailleur
bcb63ae7b4
Fix phpunit
2024-07-26 04:10:10 +02:00
Laurent Destailleur
50190db5c7
Fix option WITHDRAWAL_WITHOUT_BIC
2024-07-25 22:02:20 +02:00
Laurent Destailleur
d863d455b2
Fix phpunit
2024-07-25 17:51:45 +02:00
Laurent Destailleur
5513b573b0
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-07-24 04:06:06 +02:00
Laurent Destailleur
7595609be2
Fix #yogosha23464 possible RCE by an admin user.
2024-07-23 18:27:18 +02:00
Laurent Destailleur
be1e91242b
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-07-22 20:13:07 +02:00
Laurent Destailleur
1cb57b03ae
Debug v20 - fix dol_escape_htmltag
2024-07-22 20:12:35 +02:00
Laurent Destailleur
6ed6900c79
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-07-22 16:46:40 +02:00
Laurent Destailleur
561e365ff1
Fix warning
2024-07-22 16:39:26 +02:00
Laurent Destailleur
3633762298
Fix dolPrintHTML when MAIN_RESTRICTHTML_ONLY_VALID_HTML_TIDY is off
2024-07-22 16:36:24 +02:00
Laurent Destailleur
cabe506077
Fix phpunit
2024-07-16 09:51:50 +02:00
Laurent Destailleur
0a7df365fc
Sync transifex
2024-07-16 04:59:25 +02:00
Laurent Destailleur
5661a381ee
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
...
Conflicts:
htdocs/comm/propal/class/propal.class.php
htdocs/projet/tasks/time.php
2024-07-13 17:47:55 +02:00
Laurent Destailleur
7879e12bd2
Fix phpunit
2024-07-13 02:22:26 +02:00
Laurent Destailleur
a391143007
Removed dol_json_encode/decode in favor of native json_encode/decode
2024-07-12 02:01:09 +02:00
Laurent Destailleur
e3d858692e
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
2024-07-12 01:54:11 +02:00
Laurent Destailleur
d3ebd3fbe7
SEC: Possible RCE when php module json off. +Warning in security page.
2024-07-12 01:43:53 +02:00
Vincent de Grandpré
b0cd32bf68
NEW Implementing Billable tasks on projects using new attribute "billable" ( #30092 )
...
* Implementing Billable task function on projects using new attribute in #30014
* added billable to Task->initAsSpecimen()
* default billable to 1 in initAsSpecimen
* set billable to 1 in ProjectTest::testTaskCreate
* Moving attribut usage in usage_bill_time condition of project
* PPDoc
* fusion
* pre-commit + typo
---------
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2024-07-03 03:29:05 +02:00
Laurent Destailleur
04f64714f1
Debug v20
2024-06-26 21:45:36 +02:00
Lucas Marcouiller
d63687da6d
Fix dol_escape_htmltag to prevent bad strip of char ( #29931 )
...
Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
2024-06-08 14:51:32 +02:00
Laurent Destailleur
5bbc4e083e
Add a phpunit test
2024-06-04 14:06:35 +02:00
Laurent Destailleur
580a021c7d
Fix warnings
2024-06-01 15:30:43 +02:00
Laurent Destailleur
ad48477f6c
Fix name of test file
2024-06-01 12:21:54 +02:00
Laurent Destailleur
ba6e7e85db
Merge #28264 to get a simpler code
2024-06-01 12:02:23 +02:00
Laurent Destailleur
3cd74f4689
Fix phpunit
2024-05-29 14:43:23 +02:00
Laurent Destailleur
4d49d01eec
Fix phpunit
2024-05-15 12:19:57 +02:00
Laurent Destailleur
1b2bad3f42
NEW Add function to manipulate emojis
2024-05-14 18:19:48 +02:00
Laurent Destailleur
7f3ed10922
Add phpunit case
2024-05-14 04:08:54 +02:00
Laurent Destailleur
27bc1cddad
Debug v20
2024-05-08 15:43:46 +02:00
Laurent Destailleur
f8d072f04c
Fix phpunit
2024-04-23 20:26:24 +02:00