Bugzilla – Attachment 130817 Details for
Bug 30115
Uninitialized value warning in C4/Output.pm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30115: Uninitialized value warning in C4/Output.pm
Bug-30115-Uninitialized-value-warning-in-C4Outputp.patch (text/plain), 1.45 KB, created by
Jonathan Druart
on 2022-02-18 10:07:37 UTC
(
hide
)
Description:
Bug 30115: Uninitialized value warning in C4/Output.pm
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-02-18 10:07:37 UTC
Size:
1.45 KB
patch
obsolete
>From 0cb74e20decd659ced27df650b8b006d898c3112 Mon Sep 17 00:00:00 2001 >From: Blou <blou@inlibro.com> >Date: Tue, 15 Feb 2022 16:18:15 -0500 >Subject: [PATCH] Bug 30115: Uninitialized value warning in C4/Output.pm > >Use of uninitialized value $url_suffix in concatenation (.) or string at GIT/C4/Output.pm line 180. >Use of uninitialized value $url_suffix in concatenation (.) or string at GIT/C4/Output.pm line 197. >Use of uninitialized value $url_suffix in concatenation (.) or string at GIT/C4/Output.pm line 211. > >This is in pagination_bar sub. A lot of pages call it. For me it >happened with any Authority search (authorities/authorities-home.pl) >producing multiple results. > >Simple fix is initializing the variable. > >Signed-off-by: Owen Leonard <oleonard@myacpl.org> > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > C4/Output.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Output.pm b/C4/Output.pm >index 09dc73d41dd..e36ec30bdc5 100644 >--- a/C4/Output.pm >+++ b/C4/Output.pm >@@ -99,7 +99,7 @@ sub pagination_bar { > $base_url =~ s/$delim$//; # remove trailing delim > > my $url = $base_url . (($base_url =~ m/$delim/ or $base_url =~ m/\?/) ? '&' : '?' ) . $startfrom_name . '='; >- my $url_suffix; >+ my $url_suffix = ''; > while ( my ( $k, $v ) = each %$additional_parameters ) { > $url_suffix .= '&' . URI::Escape::uri_escape_utf8($k) . '=' . URI::Escape::uri_escape_utf8($v); > } >-- >2.25.1
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 30115
:
130639
|
130661
| 130817