Guard against relative path wildcards and Linux root
This commit is contained in:
parent
0d2ab44974
commit
d40e20985d
3 changed files with 17 additions and 16 deletions
|
@ -203024,29 +203024,22 @@ Scrap Galaxy:
|
|||
steam:
|
||||
id: 723110
|
||||
Scrap Garden:
|
||||
files:
|
||||
'*':
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
- os: windows
|
||||
installDir:
|
||||
Scrap Garden: {}
|
||||
registry:
|
||||
HKEY_CURRENT_USER/Software/Flazm/scrap-garden:
|
||||
tags:
|
||||
- config
|
||||
- save
|
||||
steam:
|
||||
id: 465760
|
||||
Scrap Garden - The Day Before:
|
||||
files:
|
||||
'*':
|
||||
tags:
|
||||
- save
|
||||
when:
|
||||
- os: windows
|
||||
installDir:
|
||||
Scrap Garden - The Day Before: {}
|
||||
registry:
|
||||
HKEY_CURRENT_USER/Software/Flazm/scrap-garden-tdb:
|
||||
tags:
|
||||
- save
|
||||
steam:
|
||||
id: 508390
|
||||
Scrap Mechanic:
|
||||
|
|
|
@ -94909,13 +94909,11 @@ Scrap Galaxy:
|
|||
pageId: 75115
|
||||
revId: 868502
|
||||
Scrap Garden:
|
||||
irregularPath: true
|
||||
pageId: 34773
|
||||
revId: 1002312
|
||||
revId: 1005918
|
||||
Scrap Garden - The Day Before:
|
||||
irregularPath: true
|
||||
pageId: 51288
|
||||
revId: 1002313
|
||||
revId: 1005919
|
||||
Scrap Mechanic:
|
||||
pageId: 44908
|
||||
revId: 959815
|
||||
|
|
10
src/wiki.ts
10
src/wiki.ts
|
@ -331,6 +331,16 @@ export function pathIsTooBroad(path: string): boolean {
|
|||
return true;
|
||||
}
|
||||
|
||||
// Root:
|
||||
if (path === "/") {
|
||||
return true;
|
||||
}
|
||||
|
||||
// Relative path wildcard:
|
||||
if (path.startsWith("*")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Reference in a new issue