/[smeserver]/rpms/perl-CGI-FormMagick/sme8/perl-CGI-FormMagick-0.92-ip-validation2.patch
ViewVC logotype

Contents of /rpms/perl-CGI-FormMagick/sme8/perl-CGI-FormMagick-0.92-ip-validation2.patch

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


Revision 1.1 - (show annotations) (download)
Fri Mar 4 08:45:49 2011 UTC (13 years, 8 months ago) by snetram
Branch: MAIN
CVS Tags: perl-CGI-FormMagick-0_92-20_el5_sme
* Fri Mar 4 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 0.92-20
- Fix IP address validation [SME: 6446]

1 diff -up perl-CGI-FormMagick-0.92/lib/CGI/FormMagick/Validator/Network.pm.ip-validation2 perl-CGI-FormMagick-0.92/lib/CGI/FormMagick/Validator/Network.pm
2 --- perl-CGI-FormMagick-0.92/lib/CGI/FormMagick/Validator/Network.pm.ip-validation2 2011-03-04 09:26:22.000000000 +0100
3 +++ perl-CGI-FormMagick-0.92/lib/CGI/FormMagick/Validator/Network.pm 2011-03-04 09:31:31.000000000 +0100
4 @@ -150,6 +150,8 @@ sub ip_number {
5
6 return 'FM_IP_NUMBER2' unless scalar @dots == 3;
7
8 + my @octets = split /\./, $data;
9 +
10 foreach my $octet (@octets) {
11 return $fm->localise("FM_IP_NUMBER3", {octet => $octet}) if $octet > 255;
12 }

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