mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
WIP plugins: install/uninstall
This commit is contained in:
parent
345da516fa
commit
f023a19c3e
11 changed files with 216 additions and 9 deletions
|
@ -9,7 +9,7 @@ function exists (value: any) {
|
|||
function isSafePath (p: string) {
|
||||
return exists(p) &&
|
||||
(p + '').split(sep).every(part => {
|
||||
return [ '', '.', '..' ].includes(part) === false
|
||||
return [ '..' ].includes(part) === false
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue