Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HFP-4037 Fix sanitization of visual parameters #129

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

otacke
Copy link
Contributor

@otacke otacke commented Jun 19, 2024

When merged in, will fix setting the default value for visuals.disableFullscreen during sanitization.

The idea of the current code is to allow the video to be sent to full screen by default (21b6d04). However, jQuery's extend function will overwrite the disableFullscreen with false (3rd argument) in any case - even if it is set to true in the target parameter (2nd argument). That means that setting the parameter (by a parent content type) has no effect.

Fixed by reversing the order of the 2nd and the 3rd argument of extend, so disableFullscreen: false is set by default, but will be overridden if the content parameters supply a value for disableFullscreen.

@otacke otacke changed the title Fix sanitization of visual parameters HFP-4037 Fix sanitization of visual parameters Jun 19, 2024
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.

1 participant