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

Sanitized search-related freemarker variables #3952

Merged
merged 1 commit into from Mar 21, 2024

Conversation

litvinovg
Copy link
Collaborator

@litvinovg litvinovg commented Mar 12, 2024

VIVO GitHub issue

Vitro PR

What does this pull request do?

Sanitized Freemarker variables in search templates.

How should this be tested?

  • Reproduce the problem in the issue
  • Test that the pull request fixes the issue
  • Test that search field is working in each theme

Interested parties

@VIVO-project/vivo-committers

Copy link
Contributor

@chenejac chenejac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@litvinovg looks nice.

I have tested all themes and it works as described with the exception of the nemo theme. For the nemo theme after selection of a filter, the initial query is not anymore in the url path, and therefore results are not as expected, only filter is taken into account, but not search query. I think this issue is not introduced by this PR (therefore I will approve this PR), but please check whether you can fix that.

P.S. I didn't check to use html tags in the n3 configuration of the extended search

Copy link
Member

@gneissone gneissone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks to resolve the issue locally. Still pending a new scan from IT. I suspect it should pass but I'll update if not.

@chenejac chenejac merged commit 80a374f into vivo-project:main Mar 21, 2024
4 checks passed
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.

Query text parameter not sanitized
3 participants