Morris Jobke
a661f043e1
Remove unneeded semicolon and parentheses
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Joas Schilling
5e04254d40
Install from migrations
Signed-off-by: Joas Schilling <coding@schilljs.com>
8 years ago
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>
8 years ago
Joas Schilling
1c0bffe87f
Fix translations
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Morris Jobke
edd55b0ea9
Use SystemConfig instead of AllConfig for DB stuff
* preparation for followup PRs to clean up the DB bootstrapping
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Joas Schilling
7293a4e5ec
Allow to reuse the same name when installing a new instance
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Joas Schilling
a5a35cda7c
Lower the role name before using it
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Joas Schilling
0d6134f512
Revert "Quote database and role in queries"
This reverts commit 9ebd5d5bb2
.
9 years ago
Lari Tikkanen
9ebd5d5bb2
Quote database and role in queries
Fixes #1793
Signed-off-by: Lari Tikkanen <lartza@outlook.com>
9 years ago
Robin Appelman
5365c1a32f
handle postgres setup when we cant connect as admin
9 years ago
Roeland Jago Douma
7fb88ec506
Use proper ALTER ROLE syntax
Fixes #1260
See https://www.postgresql.org/docs/9.0/static/sql-alterrole.html
9 years ago
Joas Schilling
0215b004da
Update with robin
9 years ago
Joas Schilling
ba87db3fcc
Fix others
9 years ago
Joas Schilling
9781312648
Prevent syntax error when creating user or changing password
9 years ago
Robin Appelman
7ffda5d10f
use pdo for postgres setup
9 years ago
Thomas Pulzer
0638937ada
Changed the input option for database-port to required when parameter was provided.
Added casting database port to int for input sanitation in pgsql and oci connections.
9 years ago
Thomas Pulzer
d367318088
Added occ install option for database-port.
Extended the database setup to store the database port.
Changed the PostgreSQL connection error message for clarification.
9 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Roeland Jago Douma
479245a301
Move \OC\Repair to PSR-4
10 years ago
Stefan Weil
b1a856d7b7
lib: Fix typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Roeland Jago Douma
e01a488b31
Remove generateRandomBytes from OC_Util
10 years ago
Morris Jobke
aa0265bd34
Replace OC_Config in setup
10 years ago
Morris Jobke
b945d71384
update licence headers via script
10 years ago
Thomas Müller
114f128fc3
Moving mysql setup code over to Doctrine
10 years ago
Thomas Müller
d3ac73c0c9
Remove OC_Log
10 years ago
Morris Jobke
f63915d0c8
update license headers and authors
10 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
11 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0
.
11 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
11 years ago
Joas Schilling
039397bd31
Use setConfigs() instead of calling setConfig() multiple times
11 years ago
Joas Schilling
3338eede3c
Correctly namespace DatabaseSetupException
11 years ago
eduardo
428d2b6e0f
Remove unused spaces
12 years ago
eduardo
938ece1a3f
Remove name from code
12 years ago
eduardo
569851fa0e
Add tabs to conformance with owncloud code standards
12 years ago
eduardo
d258ade35e
Fix PostgreSQL port configuration on install
12 years ago
Thomas Müller
9c9dc276b7
move the private namespace OC into lib/private - OCP will stay in lib/public
Conflicts:
lib/private/vcategories.php
12 years ago
kondou
9c5416fe4a
Clean up \OC\Util
- Use camelCase
- Add some phpdoc
- Fix some indents
- Use some more spacing
12 years ago
Bart Visscher
60eb63e35a
Fix review items
12 years ago
Bart Visscher
e93ce26f27
Fix found errors
13 years ago
Bart Visscher
6831b78597
Use db setup class for option validation
13 years ago
Bart Visscher
e232907698
Convert database setup code to objects
13 years ago
Bart Visscher
a6d07cd512
Split database specific install/setup code to their own class
13 years ago