Bugzilla – Attachment 42069 Details for
Bug 12478
Elasticsearch support for Koha
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12478: Fix encoding issue on facets
Bug-12478-Fix-encoding-issue-on-facets.patch (text/plain), 1.61 KB, created by
Jonathan Druart
on 2015-08-28 11:39:07 UTC
(
hide
)
Description:
Bug 12478: Fix encoding issue on facets
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2015-08-28 11:39:07 UTC
Size:
1.61 KB
patch
obsolete
>From 02c7810e13852bc7bdbaf7cc8b7f448c82907949 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 28 Aug 2015 11:59:26 +0100 >Subject: [PATCH] Bug 12478: Fix encoding issue on facets >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >Filer on "Ålez, Ts." => Can't escape \x{015A}, try uri_escape_utf8() >instead at >/home/koha/src/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm line 221. >--- > Koha/SearchEngine/Elasticsearch/QueryBuilder.pm | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >index bf5154f..ff2f742 100644 >--- a/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >+++ b/Koha/SearchEngine/Elasticsearch/QueryBuilder.pm >@@ -214,12 +214,12 @@ sub build_query_compat { > > #die Dumper($query); > # We roughly emulate the CGI parameters of the zebra query builder >- my $query_cgi = 'idx=kw&q=' . uri_escape( $operands->[0] ) if @$operands; >+ my $query_cgi = 'idx=kw&q=' . uri_escape_utf8( $operands->[0] ) if @$operands; > my $simple_query = $operands->[0] if @$operands == 1; > my $query_desc = $simple_query; > my $limit = $self->_join_queries( $self->_convert_index_strings(@$limits)); > my $limit_cgi = >- '&limit=' . join( '&limit=', map { uri_escape($_) } @$orig_limits ); >+ '&limit=' . join( '&limit=', map { uri_escape_utf8($_) } @$orig_limits ); > my $limit_desc = "$limit" if $limit; > return ( > undef, $query, $simple_query, $query_cgi, $query_desc, >-- >2.1.0
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 12478
:
29204
|
31128
|
31129
|
33136
|
33137
|
33138
|
33139
|
33140
|
33141
|
35654
|
40903
|
42030
|
42031
|
42032
|
42033
|
42062
|
42063
|
42064
|
42065
|
42066
|
42067
|
42068
|
42069
|
42392
|
42393
|
43127
|
43128
|
43129
|
43130
|
43131
|
43132
|
43133
|
43134
|
43140
|
43141
|
43142
|
43148
|
43345
|
43346
|
43347
|
43348
|
43349
|
43350
|
43351
|
43352
|
43373
|
47767
|
47768
|
50115
|
50159
|
50211
|
50212
|
50213
|
50214
|
50245
|
50246
|
50291
|
50292