[Jaws-commits] r9734 - branches/0.8/jaws/html/libraries/pear/Net

afz at jaws-project.com afz at jaws-project.com
Fri Oct 31 04:28:17 UTC 2008


Author: afz
Date: 2008-10-31 04:28:17 +0000 (Fri, 31 Oct 2008)
New Revision: 9734

Modified:
   branches/0.8/jaws/html/libraries/pear/Net/IPv4.php
Log:
Update PEAR::Net_IPv4

Modified: branches/0.8/jaws/html/libraries/pear/Net/IPv4.php
===================================================================
--- branches/0.8/jaws/html/libraries/pear/Net/IPv4.php	2008-10-31 04:02:03 UTC (rev 9733)
+++ branches/0.8/jaws/html/libraries/pear/Net/IPv4.php	2008-10-31 04:28:17 UTC (rev 9734)
@@ -17,7 +17,7 @@
 * @author     Florian Anderiasch <fa at php.net>
 * @copyright  1997-2005 The PHP Group
 * @license    http://www.php.net/license/3_01.txt  PHP License 3.01
-* @version    CVS: $Id: IPv4.php,v 1.11 2005/11/29 12:56:35 fa Exp $
+* @version    CVS: $Id: IPv4.php,v 1.12 2008/05/14 15:55:08 bate Exp $
 * @link       http://pear.php.net/package/Net_IPv4
 */
 
@@ -229,7 +229,7 @@
             /*
              *  a CIDR bitmask type was entered
              */
-            } else if ($parts[1] >= 0 && $parts[1] <= 32) {
+            } else if (ctype_digit($parts[1]) && $parts[1] >= 0 && $parts[1] <= 32) {
                 // bitmask was entered
                 $myself->bitmask = $parts[1];
 



More information about the Jaws-commits mailing list