aurweb/web
Eli Schwartz d92dd69aa3 fix broken SQL query that always failed
Due to missing whitespace at the end of strings during joining, we ended
up with the query fragment

"DelTS IS NULLAND NOT PinnedTS"

which should be

"DelTS IS NULL AND NOT PinnedTS"

So the check for pinned comments > 5 likely always failed.

In php 7, a completely broken query that raises exceptions in the
database engine was silently ignored... in php 8, it raises

Uncaught PDOException: SQLSTATE[HY000]: General error: 1 near "PinnedTS": syntax error in <file>

and aborts the page building. End result: users with permission to pin
comments cannot see any comments, or indeed page content below the first
comment header

Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
2021-02-20 11:22:11 -05:00
..
html Fix PHP notices in the account form 2020-04-05 15:59:56 -04:00
lib fix broken SQL query that always failed 2021-02-20 11:22:11 -05:00
locale Add dummy "web/locale/" directory. 2011-04-10 15:40:49 +02:00
template Properly escape passwords in the account edit form 2020-02-27 16:44:36 +01:00