[Bug 22290] New: Next pages results for cyrillic symbols shows decoded text in URL in anchor tag
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22290 Bug ID: 22290 Summary: Next pages results for cyrillic symbols shows decoded text in URL in anchor tag Change sponsored?: --- Product: Koha Version: 18.11 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Searching Assignee: koha-bugs@lists.koha-community.org Reporter: b.pastern4k@gmail.com QA Contact: testopia@bugs.koha-community.org Target Milestone: --- Created attachment 84849 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=84849&action=edit Search encoding This bug is reproduced on OPAC, intranet works fine. Whenether i enter cyrillic symbols in search, first page results are fine, but the generated HTML page has wrong value in pagination. Something like this is inside each li>a href element in pagination /cgi-bin/koha/opac-search.pl?idx=kw&q=%25D1%2588%25D0%25B5%25D0%25B2%25D1%2587%25D0%25B5%25D0%25BD%25D0%25BA%25D0%25BE&offset=20&sort_by=relevance_dsc If i click search on this link i am redirected to page that shows broken characters as you can see in attachment. -- 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=22290 Martin Renvoize <martin.renvoize@ptfs-europe.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal Version|18.11 |master CC| |martin.renvoize@ptfs-europe | |.com -- 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=22290 George Veranis <gveranis@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |gveranis@gmail.com --- Comment #1 from George Veranis <gveranis@gmail.com> --- Based on https://www.perlmonks.org/bare/?node_id=495747 and that answer " Won't that escape data twice? Without actually running it, it looks like "\x{1234}" would be transformed by uri_escape_utf8 into "%C8%B4" which would be transformed by POST into "%25C8%25B4" while the right answer would be "%C8%B4" " I add the line $query_cgi = Encode::decode_utf8(uri_unescape($query_cgi)); at 587 of opac-search.pl and it works I will try later to do a patch for 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=22290 b.pastern4k@gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #2 from b.pastern4k@gmail.com --- Thank you very much for this! -- 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=22290 George Veranis <gveranis@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |gveranis@gmail.com |ity.org | -- 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=22290 George Veranis <gveranis@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22290 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEW CC| |katrin.fischer@bsz-bw.de Assignee|gveranis@gmail.com |koha-bugs@lists.koha-commun | |ity.org --- Comment #3 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Resetting assignee to default -- 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=22290 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- This appears to have been fixed. I tested a search for "Л" in the OPAC and switched pages, the breadcrumbs and URL still look nice. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org