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

Issue/245 undefined method empty for integer #247

Merged
merged 22 commits into from
Sep 17, 2024

Conversation

jonrandahl
Copy link
Contributor

This PR brings the update from ticket #245 back onto the development instance

jonrandahl and others added 16 commits September 3, 2024 11:31
Sanitises a string for HTML output (using Rails' built-in sanitizer)
Remove any non-allowlisted parameters, or params with empty values (e.g. empty strings, empty arrays)
Sanitises the supplied input for HTML output using Rails' built-in sanitizer helper
`ActionController::Base.helpers.sanitize(val)` ~> `Rails::Html::FullSanitizer.new.sanitize(val)`
now checks for date type and only sanitises strings for `search_term.value`
Task: Release Candidate v1.7.7
updated the type check for the current search terms to only sanitise strings and pass other types, i.e. Date, Integer, as is.
Due to the manner Rails swallows the stack trace if presenting a custom error template early the ticket issue was hard to determine while stepping through the current codebase; now standard Rails error templates will be used in production and test environments
@jonrandahl jonrandahl merged commit fbb82c0 into dev Sep 17, 2024
2 checks passed
@jonrandahl jonrandahl deleted the issue/245-undefined-method-empty-for-integer branch September 17, 2024 10:25
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