nextcloud/lib/private/Repair
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
..
NC11 Copy avatars to the new location 2017-05-18 10:49:04 +02:00
NC12 Add tests for repairstep 2017-04-26 20:07:52 +02:00
NC13 Add Phan plugin to check for SQL injections 2017-07-20 22:48:13 +02:00
Owncloud Don't throw an error when the table doesn't exist 2017-07-12 15:35:24 +02:00
CleanTags.php Add Phan plugin to check for SQL injections 2017-07-20 22:48:13 +02:00
Collation.php Adding tests for 4 byte unicode characters 2017-03-21 16:42:12 -06:00
MoveUpdaterStepFile.php Add proper default value for datadir 2017-01-19 19:49:41 -06:00
OldGroupMembershipShares.php Add Phan plugin to check for SQL injections 2017-07-20 22:48:13 +02:00
RemoveRootShares.php introduce callForSeenUsers and countSeenUsers (#26361) 2016-10-28 08:44:05 +02:00
RepairInvalidShares.php Add Phan plugin to check for SQL injections 2017-07-20 22:48:13 +02:00
RepairMimeTypes.php added kml, kmz, tcx types as well while at it 2017-06-14 11:02:05 +02:00
SqliteAutoincrement.php Fix others 2016-07-21 18:13:57 +02:00