Bugzilla – Attachment 3236 Details for
Bug 5819
No toolbar in record view when quotes present in title
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
0001-Fixing-problems-with-quotes-when-constructing-z3950-.patch (text/plain), 1.05 KB, created by
Janusz Kaczmarek
on 2011-03-01 22:26:45 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Janusz Kaczmarek
Created:
2011-03-01 22:26:45 UTC
Size:
1.05 KB
patch
obsolete
>From 2a042e5ebe65dc93c7fed52ab6b1c4cf84c154bb Mon Sep 17 00:00:00 2001 >From: Janusz Kaczmarek <januszop@gmail.com> >Date: Tue, 1 Mar 2011 22:53:24 +0100 >Subject: [PATCH] Fixing problems with quotes when constructing z3950 search term >Content-Type: text/plain; charset="utf-8" > >--- > C4/Search.pm | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) > >diff --git a/C4/Search.pm b/C4/Search.pm >index 3fff695..ff07c91 100644 >--- a/C4/Search.pm >+++ b/C4/Search.pm >@@ -2497,8 +2497,10 @@ sub z3950_search_args { > my $array = []; > for my $field (qw/ lccn isbn issn title author dewey subject /) > { >- my $encvalue = URI::Escape::uri_escape_utf8($bibrec->{$field}); >- push @$array, { name=>$field, value=>$bibrec->{$field}, encvalue=>$encvalue } if defined $bibrec->{$field}; >+ my $val = $bibrec->{$field}; >+ $val =~ s/["']/\$1/g; >+ my $encvalue = URI::Escape::uri_escape_utf8($val); >+ push @$array, { name=>$field, value=>$val, encvalue=>$encvalue } if defined $bibrec->{$field}; > } > return $array; > } >-- >1.7.2.3 >
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 5819
:
3235
|
3236
|
3237