Bug 41783 - Query parameters for suggestions filtering is not encoded
Summary: Query parameters for suggestions filtering is not encoded
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Maryse Simard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-05 22:31 UTC by Maryse Simard
Modified: 2026-02-06 04:19 UTC (History)
0 users

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 41783: Encode query parameters for suggestions filtering (1.83 KB, patch)
2026-02-05 22:33 UTC, Maryse Simard
Details | Diff | Splinter Review
Bug 41783: Encode query parameters for suggestions filtering (1.87 KB, patch)
2026-02-06 04:19 UTC, David Nind
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Maryse Simard 2026-02-05 22:31:51 UTC

    
Comment 1 Maryse Simard 2026-02-05 22:33:13 UTC
Created attachment 192576 [details] [review]
Bug 41783: Encode query parameters for suggestions filtering

When filtering by bibliographic information in the sidebar of the
suggestions management page, the '%' contained in the query is
not encoded. This can lead to errors if the search terms can be
evaluated as an encoded character.

Test plan:
    1. Go to Acquisitions > Suggestions
    2. Create a suggestion with a title like "200 recipes"
    3. In "Filter by" > Bibliographic information, search for "200"
    4. No results are shown in the table
    5. Apply the patch
    6. Search again (step 3). The suggestion should appear in the list.
Comment 2 David Nind 2026-02-06 04:19:28 UTC
Created attachment 192578 [details] [review]
Bug 41783: Encode query parameters for suggestions filtering

When filtering by bibliographic information in the sidebar of the
suggestions management page, the '%' contained in the query is
not encoded. This can lead to errors if the search terms can be
evaluated as an encoded character.

Test plan:
    1. Go to Acquisitions > Suggestions
    2. Create a suggestion with a title like "200 recipes"
    3. In "Filter by" > Bibliographic information, search for "200"
    4. No results are shown in the table
    5. Apply the patch
    6. Search again (step 3). The suggestion should appear in the list.

Signed-off-by: David Nind <david@davidnind.com>