idk about the fstream vuln idk how 2 change it in unzip/package.json

should work fine for me though (dont pipe user input to lib at all)
---
Fixed pager "<" button
master
derzombiiie 2021-08-18 11:11:53 +02:00
parent 3fa37da7ee
commit 95900a1109
5 changed files with 10 additions and 7 deletions

View File

@ -1 +1 @@
passhash: jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=
passhash: orYffX13k8Hledqig+irQcwkLclKuOM0IaxZd0+CrA8=

View File

@ -127,7 +127,7 @@ function pager( len, index ) {
let h = `<div class="pager">\n`
p.page = 0
h += `<span class="pager entry"><a href="${base + GET2param(p)}">&lt;&lt;</a></span>\n`
if ( index > -1 ) {
if ( 0 <= ( index - 1 ) ) {
p.page = index - 1
h += `<span class="pager entry"><a href="${base + GET2param(p)}">&lt;</a></span>\n`
}

View File

@ -948,3 +948,10 @@ err, crashed!"
1629236486859 | Reading posts sorted by "hot" with a length of 5
1629236502608 | Reading postindex
1629236503046 | Reading posts sorted by "hot" with a length of 5
--- SEPERATOR ---
--- SEPERATOR ---
1629277392514 | Dumping config:
1629277392520 | {"debug":false,"logging":1337,"logfile":"logs/log.log","ipget_endpoint_set":"//derzombiiie.com/getip.php?settoken=${TOKEN}","ipget_endpoint_get":"//derzombiiie.com/getip.php?token=${TOKEN}","cl":true,"site_name":"blog.derzombiiie.com","search_enable":false,"search_only_tags":true,"commenting_enabled":true,"post_ranking_auto":43200,"index_post_sort":"new","comment_sync_on_write":false,"comment_auto_sync":360}
1629277393188 | Reading posts sorted by "new" with a length of 10
1629277810539 | Reading posts sorted by "new" with a length of 10
1629277893885 | Reading posts sorted by "new" with a length of 10

View File

@ -208,10 +208,6 @@ app.get("/posts", (req, res) => {
let index = req.query.page ? req.query.page * len : 0
let pagecount = Math.floor( postsDB.get("len") / len)
console.log("len "+len)
console.log("index "+index)
console.log("pc "+pagecount)
if( typeof( req.query.hot) != "undefined" ) {
if( ! ( req.query.len < 50 ) ) {
res.status( 400 )

2
node_modules/unzip/package.json generated vendored
View File

@ -32,7 +32,7 @@
"bundleDependencies": false,
"dependencies": {
"binary": "~0.3.0",
"fstream": "~0.1.18",
"fstream": ">=1.0.12",
"pullstream": "0.0.4"
},
"deprecated": false,