1
0
Fork 0
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:
Chocobozzz 2019-07-05 15:28:49 +02:00 committed by Chocobozzz
parent 345da516fa
commit f023a19c3e
11 changed files with 216 additions and 9 deletions

View file

@ -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
})
}