Bugzilla – Attachment 191577 Details for
Bug 41593
Authenticated SQL Injection in staff side suggestions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 41593: Add a Cypress test
1506b55.patch (text/plain), 1.15 KB, created by
Lisette Scheer
on 2026-01-16 16:02:26 UTC
(
hide
)
Description:
Bug 41593: Add a Cypress test
Filename:
MIME Type:
Creator:
Lisette Scheer
Created:
2026-01-16 16:02:26 UTC
Size:
1.15 KB
patch
obsolete
>From 1506b55ddeea9ec93199d6eb34a987f362bc87d2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 12 Jan 2026 11:43:22 +0100 >Subject: [PATCH] Bug 41593: Add a Cypress test > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Signed-off-by: Lisette Scheer <lisette@bywatersolutions.com> >--- > t/cypress/integration/Suggestions_spec.ts | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > create mode 100644 t/cypress/integration/Suggestions_spec.ts > >diff --git a/t/cypress/integration/Suggestions_spec.ts b/t/cypress/integration/Suggestions_spec.ts >new file mode 100644 >index 00000000000..e3e3631ca17 >--- /dev/null >+++ b/t/cypress/integration/Suggestions_spec.ts >@@ -0,0 +1,12 @@ >+describe("Suggestions", () => { >+ beforeEach(() => { >+ cy.login(); >+ cy.title().should("eq", "Koha staff interface"); >+ }); >+ >+ it("Should sanitize displayby", () => { >+ cy.visit("/cgi-bin/koha/suggestion/suggestion.pl?displayby=foo"); >+ // Do not 500 and default to "STATUS" if displayby is not valid >+ cy.get("#displayby").should("have.value", "STATUS"); >+ }); >+}); >-- >2.39.5 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 41593
:
191239
|
191249
|
191250
|
191576
| 191577 |
191578
|
191696