-
Notifications
You must be signed in to change notification settings - Fork 7
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
UHF-10773: Helsinki near you - Services block #793
Conversation
5353b6f
to
d1b823a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just found a small issue with the address XSS filtering.
* The request. | ||
* | ||
* @return array | ||
* A renderable array. | ||
*/ | ||
public function content(Request $request) : array|RedirectResponse { | ||
$address = $request->query->get('q'); | ||
$address = Xss::filter($request->query->get('q')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This causes a deprecated function warning if the query parameter is left empty. Should we check if this is NULL or empty before running it through the filter?
Quality Gate passedIssues Measures |
UHF-10773
What was done
How to install
git checkout UHF-10773
composer require drupal/hdbt:dev-UHF-10773
make fresh
make drush-cr
How to test
Sketch: https://www.figma.com/design/udh2zu4J95VYDIzT7DtbXW/Alueellisuus?node-id=4161-11902&t=v6YlVbP2sDsyihz1-4
Continuous documentation
Translations
Other PRs