* fix(shell): properly validate open scope * change empty regex to an impossible match --------- Co-authored-by: Lucas Nogueira <lucas@tauri.app> Co-authored-by: Chip Reed <chip@chip.sh>pull/2545/head
parent
4dd5c51436
commit
9cf0390a52
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
"shell": patch:bug
|
||||||
|
"shell-js": patch:bug
|
||||||
|
---
|
||||||
|
|
||||||
|
Apply the default open validation regex `^((mailto:\w+)|(tel:\w+)|(https?://\w+)).+` when the open configuration is not set, preventing unchecked input from being used in this scenario (previously the plugin would skip validation when it should disable all calls). This keeps backwards compatibility while still fixing this vulnerability.
|
||||||
|
The scope is no longer validated for Rust calls via `ShellExt::shell()` so if you need to block JavaScript from calling the API you can simply set `tauri.conf.json > plugins > shell > open` to `false`.
|
Loading…
Reference in new issue