projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
WIP plugins: install/uninstall
[oweals/peertube.git]
/
server
/
helpers
/
custom-validators
/
misc.ts
diff --git
a/server/helpers/custom-validators/misc.ts
b/server/helpers/custom-validators/misc.ts
index f72513c1c643cc193baa4f463d22e718b4145fbc..3ef38fce1d0b135625647e24dfbbd3671d86595a 100644
(file)
--- a/
server/helpers/custom-validators/misc.ts
+++ b/
server/helpers/custom-validators/misc.ts
@@
-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
})
}