[Bug 44305] New: ", by" in suggestions table in the staff interface is not translated (again)
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 Bug ID: 44305 Summary: ", by" in suggestions table in the staff interface is not translated (again) Initiative type: --- Sponsorship --- status: Product: Koha Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: I18N/L10N Assignee: koha-bugs@lists.koha-community.org Reporter: caroline.cyr-la-rose@inlibro.com QA Contact: testopia@bugs.koha-community.org CC: caroline.cyr-la-rose@inlibro.com, f.demians@tamil.fr, jonathan.druart@gmail.com, julian.maurice@biblibre.com Target Milestone: --- The fix in bug 41769 was broken in bug 42471 -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |41769, 42471 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41769 [Bug 41769] ", by" in suggestions table in the staff interface is not translated https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42471 [Bug 42471] [CVE-2026-41921] /cgi-bin/koha/suggestion/suggestion.pl Multiple Parameters Stored Cross-Site Scripting -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 David Cook <dcook@prosentient.com.au> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |dcook@prosentient.com.au --- Comment #1 from David Cook <dcook@prosentient.com.au> --- Hmm... looking at the patch for bug 42471 it looks like it might've been broken by something before it... -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 --- Comment #2 from David Cook <dcook@prosentient.com.au> --- Oh nevermind I see it now: - let a = '<a href="suggestion.pl?suggestionid=%s&op=show" title="%s">'.format(row.suggestion_id, _("suggestion")); - let node = a + (row.author ? a + _("%s, by %s").format(row.title.escapeHtml(), row.author.escapeHtml()) : row.title.escapeHtml()); + let node = '<a href="suggestion.pl?suggestionid=%s&op=show" title="%s">%s'.format(escape_str(row.suggestion_id), escape_str(_("suggestion")), escape_str(row.title)); + if (row.author) node += ", by %s".format(escape_str(row.author)); -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 David Nind <david@davidnind.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |david@davidnind.com -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|koha-bugs@lists.koha-commun |jonathan.druart@gmail.com |ity.org | --- Comment #3 from Jonathan Druart <jonathan.druart@gmail.com> --- sorry about that! -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 --- Comment #4 from Jonathan Druart <jonathan.druart@gmail.com> --- Created attachment 212761 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212761&action=edit Bug 44305: Restore translatable "%s, by %s" in suggestions table The fix from bug 41769 (translatable "%s, by %s") was lost in bug 42471 Test plan: 1. Create a purchase suggestion, with title and author => the table shows "title, by author" 2. Install another language and translate "%s, by %s" 3. Use the language on the interface and confirm that the string is translated 4. Create a suggestion with HTML in title/author (e.g. <b>t</b>) and confirm that it is escaped -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |Needs Signoff -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #212761|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 --- Comment #5 from Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> --- Created attachment 212786 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=212786&action=edit Bug 44305: Restore translatable "%s, by %s" in suggestions table The fix from bug 41769 (translatable "%s, by %s") was lost in bug 42471 Test plan: 1. Create a purchase suggestion, with title and author => the table shows "title, by author" 2. Install another language and translate "%s, by %s" 3. Use the language on the interface and confirm that the string is translated 4. Create a suggestion with HTML in title/author (e.g. <b>t</b>) and confirm that it is escaped Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 --- Comment #6 from Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> --- Thanks Jonathan! I knew where the booboo was, but I didn't have the faintest idea how to fix it. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44305 --- Comment #7 from Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> --- BTW our clients found this in 26.05.05. If it could be backported all the way to 26.05 it would be great. -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org