Commit Graph

5 Commits

Author SHA1 Message Date
Joe Nahmias 87e9a770c8 fix(test): searching with trailing space returns data on MSSQL
Microsoft SQL Server automatically pads the shorter of two strings of
unequal length with spaces prior to comparisons. Thus, searching for
username = 'test ' (unexpectedly) matches a row where username = 'test'.

Since kanboard does not rely on this behavior or its absence, simply
remove the test as unecessary to avoid this differing result amongst the
various database backends.

Ref: https://support.microsoft.com/en-us/topic/inf-how-sql-server-compares-strings-with-trailing-spaces-b62b1a2d-27d3-4260-216d-a605719003b0
2023-02-20 19:23:53 -08:00
Frédéric Guillot bd8bcfbc37 Always trim the username before saving changes in the database
Fixes #4742
2023-02-12 19:30:23 -08:00
Timo 64397f45fa Kanboard now requires PHP >= 7.2 since other versions are deprecated 2020-01-14 12:02:31 -08:00
Frédéric Guillot cb9e6377f6 Disable private projects when disabling a user 2017-11-30 12:02:48 -08:00
Frederic Guillot be22f0619e
Remove method UserModel::getFullname() 2016-07-24 13:29:24 -04:00