dolibarr/dev/tools
MDW ab8daf516f
Qual: Remove SQL injection suppressions from Phan baseline (#39450)
* Qual: Remove SQL injection suppressions from Phan baseline

# Qual: Remove SQL injection suppressions from Phan baseline

- Removed SqlInjection suppressions from baseline.txt
- Removed SqlInjectionUnquotedEscape suppressions from baseline.txt

* Qual: Improve SQL query escaping and formatting in contact list

# Qual: Improve SQL query escaping and formatting in contact list

Improved the SQL query escaping for compatibility with SqlInjection.

Does not fix the inappropriate/incomplete escaping through usage of the 'escapeforlike' for REGEX or PGSQL '~'.

* Qual: Add SQLInjection suppression comments

# Qual: Add SQLInjection suppression comments

Added SQLInjection suppression directives:
- In modules_import.class.php, for json_encode operations.
- In html.formproduct.class.php, for expression "sanitized" by $db->order().
- In html.formwebportal.class.php, for the WHERE clause conditions (supposes safe argument).

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-08-11 02:21:54 +02:00
..
api/macos Clean files 2026-01-07 19:01:54 +01:00
codespell Qual: Fix 'SqlInjection' notices (#39228) 2026-07-20 15:26:30 +02:00
phan Qual: Remove SQL injection suppressions from Phan baseline (#39450) 2026-08-11 02:21:54 +02:00
php-cs-fixer Qual: Update PHP-CS-Fixer configuration and DolibarrModules class 2025-11-27 01:08:46 +01:00
phpstan CI 2026-05-22 12:17:17 +02:00
rector Qual: Fix french comments and improve detector (#39026) 2026-07-01 12:26:51 +02:00
test Clean files 2026-01-07 19:01:54 +01:00
.gitignore
apstats.php Qual: Fix Phan notices, set PHP min to 7.2 to avoid some (#38400) 2026-05-23 04:09:56 +02:00
dolibarr-mysql2pgsql.pl Qual: Add perltidy & perlcritic + updates to fix notices. (#36370) 2025-11-23 01:52:07 +01:00
dolibarr-postgres2mysql.php Reduce exceptions 2026-05-22 10:36:30 +02:00
fixaltlanguages.sh
fixaltlanguages_pre-commit.sh
fixcopyrightheader.php
fixdosfiles.sh
fixduplicatelangkey.sh
fixduplicatelanglines.sh
fixnotabfiles.sh
fixperms.sh
fixsnakeCaseToCamelCase.sh Clean files 2026-01-07 19:01:54 +01:00
fixutf8bomfiles.sh
github_authors_and_commits_bydate.sh
github_commits_byversion.sh Fix CI 2025-11-26 21:49:07 +01:00
github_lines_byuser.sh
github_pr_reviewers_webhook.php
make_sprite.sh
optimize_images.sh Qual: Update pre-commit hooks (#36262) 2025-11-17 21:50:29 +01:00
resize_window.sh Clean files 2026-01-07 19:01:54 +01:00