Files
tauri-plugins-workspace/.changes/persisted-scope-fix-oom.md
T
Fabian-Lars ebb2eb2fe2 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
2023-04-26 12:37:23 +02:00

265 B

persisted-scope
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.