Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Commit

Permalink
Update SiteMeta.js
Browse files Browse the repository at this point in the history
  • Loading branch information
blurHY committed Apr 7, 2019
1 parent 9b35673 commit 5e4ebb9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ZeroNet/SiteMeta.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ module.exports = {
} catch {
return null
}
if (!dbSchema)
return null
let joined = path.resolve(process.env.ZeronetDataPath, siteAddr, dbSchema.db_file)
if (!joined.startsWith(path.resolve(process.env.ZeronetDataPath, siteAddr)))
throw Error("Path disallowed: " + joined)
Expand Down

0 comments on commit 5e4ebb9

Please sign in to comment.