/[smeserver]/rpms/perl-CGI-FormMagick/sme10/perl-CGI-FormMagick-0.93-bz10210-uninitialized_what_to_make.patch
ViewVC logotype

Contents of /rpms/perl-CGI-FormMagick/sme10/perl-CGI-FormMagick-0.93-bz10210-uninitialized_what_to_make.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Wed Apr 5 15:07:25 2017 UTC (7 years, 7 months ago) by unnilennium
Branch: MAIN
CVS Tags: perl-CGI-FormMagick-0_93-8_el7_sme, perl-CGI-FormMagick-0_93-5_el7_sme, perl-CGI-FormMagick-0_93-6_el7_sme, perl-CGI-FormMagick-0_93-3_el7_sme, perl-CGI-FormMagick-0_93-7_el7_sme, HEAD
* Wed Apr 05 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.93-3.sme
- fix uninitialized value $what_to_make in lc [SME: 10210]

1 diff -Nur perl-CGI-FormMagick-0.93.old/lib/CGI/FormMagick/TagMaker.pm perl-CGI-FormMagick-0.93/lib/CGI/FormMagick/TagMaker.pm
2 --- perl-CGI-FormMagick-0.93.old/lib/CGI/FormMagick/TagMaker.pm 2005-10-31 12:24:02.000000000 -0500
3 +++ perl-CGI-FormMagick-0.93/lib/CGI/FormMagick/TagMaker.pm 2017-04-05 11:04:34.084000000 -0400
4 @@ -189,7 +189,7 @@
5 my $called_sub_name = $1;
6
7 my ($tag_name, $what_to_make) = split( '_', $called_sub_name, 2 );
8 - unless( lc($what_to_make) =~
9 + unless( lc($what_to_make||'') =~
10 /^($TAG_GROUP|$TAG_PAIR|$TAG_START|$TAG_END)$/ ) {
11 if( $self->{$KEY_AUTO_GROUP} ) {
12 $what_to_make = $TAG_GROUP;
13 @@ -203,7 +203,7 @@
14 my $ra_text = delete( $rh_params->{$PARAM_TEXT} );
15 my $force_list = delete( $rh_params->{$PARAM_LIST} );
16
17 - if( lc($what_to_make) eq $TAG_GROUP ) {
18 + if( lc($what_to_make||'') eq $TAG_GROUP ) {
19 return( $self->make_html_tag_group(
20 $tag_name, $rh_params, $ra_text, $force_list ) );
21 }
22 @@ -311,7 +311,7 @@
23 sub make_html_tag {
24 my ($self, $tag_name, $rh_params, $text, $what_to_make) = @_;
25 $tag_name = lc($tag_name);
26 - $what_to_make = lc($what_to_make);
27 + $what_to_make = lc($what_to_make||'');
28 $text = defined($text) ? $text : '';
29
30 my %tag_params = map { ( lc($_) => $rh_params->{$_} ) }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed