fix(persisted-scope): Prevent out-of-memory issues, fixes #274 (#328)

* fix(persisted-scope): Unescape paths before saving to disk.

* fix cfg flags

* dedupe code

* unescape when reading to try to fix existing files

* add more patterns. only fix pattern on app start. don't check if pattern is allowed already.

* remove dbg log

* typo

* remove unused imports

* clippy

* fix compilation with asset-protocol feature flag enabled

* update patterns

* manually re-save state once

* add changefile

* remove dbg print
This commit is contained in:
Fabian-Lars
2023-04-26 12:37:23 +02:00
committed by GitHub
parent 8e5dead7d3
commit ebb2eb2fe2
4 changed files with 75 additions and 29 deletions
+5
View File
@@ -0,0 +1,5 @@
---
persisted-scope: patch
---
Recursively unescape saved patterns before allowing/forbidding them. This effectively prevents `.persisted-scope` files from blowing up, which caused Out-Of-Memory issues, while automatically fixing existing broken files seamlessly.