summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-08-17 12:08:40 +0200
committerLukas Reschke <lukas@statuscode.ch>2017-08-17 12:08:40 +0200
commited8a98eaa1e44d172b838c5c9caa74261ac27eb1 (patch)
tree3b9a54794fdc298c8583b23c2e45cf7b9a90aed9 /config
parenta53aa40b4ddf4c9f868ad03df7131ceee417f2c9 (diff)
downloadnextcloud-server-ed8a98eaa1e44d172b838c5c9caa74261ac27eb1.tar.gz
nextcloud-server-ed8a98eaa1e44d172b838c5c9caa74261ac27eb1.zip
Prevent SQL error message in case of error
`\OC\User\Database::createUser` can throw a PHP exception in case the UID is longer than permitted in the database. This is against it's PHPDocs and we should cast this to `false`, so that the regular error handling triggers in. The easiest way to reproduce is on MySQL: 1. Create user `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` in admin panel 2. Create user `aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa` in admin panel again 3. See SQL exception as error message Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions