Bugzilla – Attachment 28180 Details for
Bug 12229
tools/export.pl fix to forbid adding of invalid records
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch : fix to prevent adding of invalid records in marc file
0001-Bug-12229-fix-to-prevent-adding-of-invalid-records-i.patch (text/plain), 1023 bytes, created by
Stéphane Delaune
on 2014-05-12 15:02:36 UTC
(
hide
)
Description:
proposed patch : fix to prevent adding of invalid records in marc file
Filename:
MIME Type:
Creator:
Stéphane Delaune
Created:
2014-05-12 15:02:36 UTC
Size:
1023 bytes
patch
obsolete
>From c44664cf09f8f6c82423c4c5a9a25b085a64ddf6 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?St=C3=A9phane=20Delaune?= <stephane.delaune@biblibre.com> >Date: Mon, 12 May 2014 16:58:14 +0200 >Subject: [PATCH] Bug 12229: fix to prevent adding of invalid records in marc > file > >--- > tools/export.pl | 5 +++++ > 1 file changed, 5 insertions(+) > >diff --git a/tools/export.pl b/tools/export.pl >index 9bbed0b..1a055b0 100755 >--- a/tools/export.pl >+++ b/tools/export.pl >@@ -394,6 +394,11 @@ if ( $op eq "export" ) { > print "\n"; > } > else { >+ my (@result_build_tag) = MARC::File::USMARC::_build_tag_directory($record); >+ if ($result_build_tag[2] > 99999) { >+ warn "record (number $recordid) length ".$result_build_tag[2]." is larger than the MARC spec allows (99999 bytes)"; >+ next; >+ } > print $record->as_usmarc(); > } > } >-- >1.7.9.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 12229
:
28180
|
28410
|
28456