Skip to content

fix(weather): restrict provider loading to the providers directory - #4235

Merged
rejas merged 1 commit into
MagicMirrorOrg:developfrom
KristjanESPERANTO:weather
Aug 23, 2026
Merged

fix(weather): restrict provider loading to the providers directory#4235
rejas merged 1 commit into
MagicMirrorOrg:developfrom
KristjanESPERANTO:weather

Conversation

@KristjanESPERANTO

Copy link
Copy Markdown
Collaborator

This change validates the weatherProvider value before it is used to load a provider module. Only names that resolve to a file inside the built-in providers directory are accepted.

Existing built-in providers and custom providers placed in defaultmodules/weather/providers/ continue to work unchanged. Invalid provider names now fail with a clear WEATHER_ERROR instead of attempting to load an unexpected file.

@rejas
rejas merged commit ecf1ccb into MagicMirrorOrg:develop Aug 23, 2026
13 checks passed
@KristjanESPERANTO
KristjanESPERANTO deleted the weather branch August 23, 2026 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants