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

highlighting breaks images if you search for term 'object' #109

Open
Monica-Wood opened this issue Aug 8, 2024 · 1 comment
Open

highlighting breaks images if you search for term 'object' #109

Monica-Wood opened this issue Aug 8, 2024 · 1 comment

Comments

@Monica-Wood
Copy link

Here's a "fun" one. We discovered when perusing through logs, that highlighting will also put the around values in the images 'src' attribute, causing the image to be broken if searching on the term 'object'

2024/08/08 11:35:57 [error] 1451#0: *326489 open() "/srv/pawtucket/media/collectiveaccess/images/1/4183_ca_<span class="highlightText">object</span>_representations_media_134_medium.jpg" failed (2: No such file or directory), client: 172.0.0.1, server: example.com, request: "GET /media/collectiveaccess/images/1/4183_ca_%3Cspan%20class=%22highlightText%22%3Eobject%3C/span%3E_representations_media_134_medium.jpg HTTP/1.1", host: "example.com" changed ips and urls for privacy

Screenshot 2024-08-08 at 12 29 28 PM

collectiveaccess added a commit that referenced this issue Aug 9, 2024
@collectiveaccess
Copy link
Owner

Pushed a fix for this. Please let me know how it works for you.

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

2 participants