mirror of
https://gitlab.com/MrFry/mrfrys-node-server
synced 2026-04-28 11:17:38 +02:00
Folders view tidy up, fix path with spaces, update url added to qmining
This commit is contained in:
+2
-1
@@ -49,7 +49,8 @@ app.use(bodyParser.json({
|
||||
// --------------------------------------------------------------
|
||||
|
||||
app.get('/*', function (req, res) {
|
||||
let curr = listedFiles + '/' + req.url.substring('/'.length, req.url.length).split('?')[0]
|
||||
let parsedUrl = req.url.replace(/%20/g, " ")
|
||||
let curr = listedFiles + '/' + parsedUrl.substring('/'.length, parsedUrl.length).split('?')[0]
|
||||
let relPath = curr.substring('./public/files'.length, curr.length)
|
||||
|
||||
if (relPath[relPath.length - 1] !== '/') { relPath += '/' }
|
||||
|
||||
Reference in New Issue
Block a user