SOURCES: php-pear-HTTP_Upload-bug-4318.patch - one lost chunk rest...

glen glen at pld-linux.org
Wed Feb 22 13:11:55 CET 2006


Author: glen                         Date: Wed Feb 22 12:11:55 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- one lost chunk restored

---- Files affected:
SOURCES:
   php-pear-HTTP_Upload-bug-4318.patch (1.4 -> 1.5) 

---- Diffs:

================================================================
Index: SOURCES/php-pear-HTTP_Upload-bug-4318.patch
diff -u SOURCES/php-pear-HTTP_Upload-bug-4318.patch:1.4 SOURCES/php-pear-HTTP_Upload-bug-4318.patch:1.5
--- SOURCES/php-pear-HTTP_Upload-bug-4318.patch:1.4	Wed Feb 22 13:07:00 2006
+++ SOURCES/php-pear-HTTP_Upload-bug-4318.patch	Wed Feb 22 13:11:50 2006
@@ -1,5 +1,6 @@
---- ./Upload.php~    2006-02-22 13:55:52.000000000 +0200
-+++ ./Upload.php    2006-02-22 13:55:56.000000000 +0200
+diff -u ./Upload.php    2006-02-22 13:55:56.000000000 +0200 ./Upload.php
+--- ./Upload.php    2006-02-22 13:55:56.000000000 +0200
++++ ./Upload.php	2006-02-22 14:07:58.000000000 +0200
 @@ -590,6 +590,13 @@
      var $_extensionsMode  = 'deny';
  
@@ -32,10 +33,7 @@
      }
  
      /**
-@@ -952,8 +963,12 @@
-     {
-         $exts = $this->_extensionsCheck;
-         settype($exts, 'array');
+@@ -955,14 +966,18 @@
 +        $ext = $this->getProp('ext');
 +        if (!$this->_extensionsCaseSensitive) {
 +            $ext = strtolower($ext);
@@ -46,3 +44,15 @@
                  return false;
              }
          // mode == 'accept'
+         } else {
+-            if (!in_array($this->getProp('ext'), $exts)) {
++            if (!in_array($ext, $exts)) {
+                 return false;
+             }
+         }
+         return true;
+     }
+ }
+-?>
+\ No newline at end of file
++?>
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/php-pear-HTTP_Upload-bug-4318.patch?r1=1.4&r2=1.5&f=u



More information about the pld-cvs-commit mailing list