Bugzilla – Attachment 35737 Details for
Bug 13607
Patron management API
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13607: fix to account for _ in fieldnames
Bug-13607-fix-to-account-for--in-fieldnames.patch (text/plain), 1.16 KB, created by
Robin Sheat
on 2015-02-08 23:21:23 UTC
(
hide
)
Description:
Bug 13607: fix to account for _ in fieldnames
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2015-02-08 23:21:23 UTC
Size:
1.16 KB
patch
obsolete
>From e4621f84635990ef05f15d80da3031029306d3ec Mon Sep 17 00:00:00 2001 >From: Robin Sheat <robin@catalyst.net.nz> >Date: Mon, 9 Feb 2015 12:20:14 +1300 >Subject: [PATCH] Bug 13607: fix to account for _ in fieldnames > >--- > svc/members/upsert | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/svc/members/upsert b/svc/members/upsert >index b826a8c..727bb84 100755 >--- a/svc/members/upsert >+++ b/svc/members/upsert >@@ -199,7 +199,7 @@ sub update_borrower { > my ( @f_borr, @v_borr ); > while ( my ( $f, $v ) = each %$borr_fields ) { > next if $f =~ /^borrowernumber$/i; >- die "Invalid fieldname provided (update): $f\n" if $f =~ /[^A-Za-z0-9]/; >+ die "Invalid fieldname provided (update): $f\n" if $f =~ /[^A-Za-z0-9_]/; > push @f_borr, $f; > push @v_borr, $v; > } >@@ -274,7 +274,7 @@ sub create_borrower { > # Borrower fields > my ( @f_borr, @v_borr ); > while ( my ( $f, $v ) = each %$borr_fields ) { >- die "Invalid fieldname provided: $f\n" if $f =~ /[^A-Za-z0-9]/; >+ die "Invalid fieldname provided: $f\n" if $f =~ /[^A-Za-z0-9_]/; > push @f_borr, $f; > push @v_borr, $v; > } >-- >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 13607
:
35455
|
35660
| 35737 |
36148
|
36356
|
37353