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

Apply needs_quotes list after filtering #10

Open
kadamwhite opened this issue Jun 10, 2020 · 0 comments
Open

Apply needs_quotes list after filtering #10

kadamwhite opened this issue Jun 10, 2020 · 0 comments

Comments

@kadamwhite
Copy link
Contributor

It is counterintuitive that the configuration value can

  • omit quotes
  • be a raw string

but that the values returned from altis.security.browser.filter_policy_value must have quotes and cannot be a raw string. I propose moving the logic within filter_policy_value around, to execute the array casting and quoting logic as the last step of the function, post-filtering, so that all filters can return directive values in the same (flexible) formats.

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

No branches or pull requests

1 participant