/[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.2 - (show annotations) (download)
Sat Mar 5 08:53:08 2011 UTC (13 years, 3 months ago) by snetram
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +0 -0 lines
FILE REMOVED
* Sat Mar 5 2011 Jonathan Martens <smeserver-contribs@snetram.nl> 0.92-21
- 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