nextcloud/core/Command/Db
Lukas Reschke 3d2600b039
Add Phan plugin to check for SQL injections
This adds a phan plugin which checks for SQL injections on code using our QueryBuilder, while it isn't perfect it should already catch most potential issues.

As always, static analysis will sometimes have false positives and this is also here the case. So in some cases the analyzer just doesn't know if something is potential user input or not, thus I had to add some `@suppress SqlInjectionChecker` in front of those potential injections.

The Phan plugin hasn't the most awesome code but it works and I also added a file with test cases.

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
2017-07-20 22:48:13 +02:00
..
Migrations Only create the migration directory when necessary 2017-07-06 09:58:39 +02:00
ConvertMysqlToMB4.php Add console command to migrate the charset 2017-04-28 09:35:36 +02:00
ConvertType.php Add Phan plugin to check for SQL injections 2017-07-20 22:48:13 +02:00
GenerateChangeScript.php Add autocomplete for db:* and log:* 2016-09-29 15:57:10 +02:00