aboutsummaryrefslogtreecommitdiff
path: root/src/lib/Database/SB/User/preferences.ts
Commit message (Collapse)AuthorAgeFilesLines
* fix(security): sanitize badge_wall_css server-side, render via textContentFuwn32 hours1-1/+2
| | | | | | | | | | | | | | | | Custom badge-wall CSS was sanitised only client-side with a fragile regex and injected via innerHTML, while the stored value stayed raw. Sanitise at the write boundary instead (setCSS, covering both the REST and GraphQL paths) with a css-tree pass that parses leniently and drops @import, behavior/-moz-binding, expression()/javascript: values, and </style> break-out attempts; render with textContent instead of innerHTML so break-out is impossible by construction (CSP already blocks inline script). css-tree stays server-only. A behaviour-gate test confirms ordinary CSS (backdrop-filter, content, url(), @media, @keyframes) is preserved while the dangerous constructs are removed. The previous regex also silently stripped all `content:` declarations; those now render correctly.
* fix(preferences): preserve partial preference updatesFuwn2026-03-281-44/+26
|
* refactor(supabase): move app access to service roleFuwn2026-03-271-1/+1
|
* chore(biome): drop formatter style overridesFuwn2026-03-011-116/+146
|
* chore(prettier): use spaces instead of tabsFuwn2024-10-091-108/+108
|
* refactor(Data): rename database referencesFuwn2024-08-241-0/+156