mirror of
https://github.com/mollersuite/monofile.git
synced 2024-11-21 21:36:26 -08:00
patch
This commit is contained in:
parent
78de4764bc
commit
7699258159
|
@ -143,7 +143,7 @@ authRoutes.post("/customcss", parser, (req,res) => {
|
|||
|
||||
if (typeof req.body.fileId != "string") return
|
||||
|
||||
if (id_check_regex.test(req.body.fileId) && req.body.fileId.length <= config.maxUploadIdLength) {
|
||||
if (req.body.fileId.match(id_check_regex) == req.body.fileId && req.body.fileId.length <= config.maxUploadIdLength) {
|
||||
acc.customCSS = req.body.fileId
|
||||
if (!req.body.fileId) delete acc.customCSS
|
||||
Accounts.save()
|
||||
|
|
|
@ -170,7 +170,7 @@
|
|||
</div>
|
||||
|
||||
<button on:click={() => accOpts.customcss(optPicker)}>
|
||||
<img src="/static/assets/icons/paint.svg" alt="logout_all">
|
||||
<img src="/static/assets/icons/paint.svg" alt="customcss">
|
||||
<p>Set custom CSS<span><br />{@html $account.customCSS ? `Using file ID <span class="number">${$account.customCSS}</span>` : "No custom CSS set"}</span></p>
|
||||
</button>
|
||||
|
||||
|
|
Loading…
Reference in a new issue