hedgedoc/lib/models
David Mehren 380587b7fd Ensure case-sensitive DB queries on MySQL/MariaDB
MySQLs string comparisons are case-insensitive by default.
This allows to hide notes by creating a new note with an alias that
equals the lower-cased alias of another note.
The new note is returned first by MySQL, so the original one is not
accessible anymore.

This fixes the problem by using an explicit binary comparison in the
affected queries.

See https://dev.mysql.com/doc/refman/8.0/en/case-sensitivity.html

Signed-off-by: David Mehren <git@herrmehren.de>
2024-09-01 13:54:18 +02:00
..
author.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
index.js style(migrations): fix formatting errors 2022-11-06 22:24:48 +01:00
note.js Ensure case-sensitive DB queries on MySQL/MariaDB 2024-09-01 13:54:18 +02:00
revision.js Adapt code for eslint-config-standard 17 2022-05-01 21:19:44 +02:00
temp.js Linter: Fix all lint errors 2021-02-15 12:15:14 +01:00
user.js Convert history attribute in user table to longtext 2022-09-25 11:09:23 +02:00