Annotation of pkgsrc/databases/phpldapadmin/patches/patch-lib_export__functions.php, revision 1.1

1.1     ! taca        1: $NetBSD$
        !             2: 
        !             3: * Fix XSS for CVE-2012-1114/CVE-2012-1115 from repository,
        !             4:        74434e5ca3fb66018fad60766f833f15689fcbfc.
        !             5: 
        !             6: --- lib/export_functions.php.orig      2011-10-27 02:07:09.000000000 +0000
        !             7: +++ lib/export_functions.php
        !             8: @@ -324,9 +324,9 @@ class ExportCSV extends Export {
        !             9:                }
        !            10:  
        !            11:                if ($this->compress)
        !            12: -                      echo gzencode($output);
        !            13: +                      return gzencode($output);
        !            14:                else
        !            15: -                      echo $output;
        !            16: +                      return $output;
        !            17:        }
        !            18:  
        !            19:        /**
        !            20: @@ -428,9 +428,9 @@ class ExportDSML extends Export {
        !            21:                $output .= sprintf('</dsml>%s',$this->br);
        !            22:  
        !            23:                if ($this->compress)
        !            24: -                      echo gzencode($output);
        !            25: +                      return gzencode($output);
        !            26:                else
        !            27: -                      echo $output;
        !            28: +                      return $output;
        !            29:        }
        !            30:  }
        !            31:  
        !            32: @@ -506,9 +506,9 @@ class ExportLDIF extends Export {
        !            33:                }
        !            34:  
        !            35:                if ($this->compress)
        !            36: -                      echo gzencode($output);
        !            37: +                      return gzencode($output);
        !            38:                else
        !            39: -                      echo $output;
        !            40: +                      return $output;
        !            41:        }
        !            42:  
        !            43:        /**
        !            44: @@ -633,9 +633,9 @@ class ExportVCARD extends Export {
        !            45:                }
        !            46:  
        !            47:                if ($this->compress)
        !            48: -                      echo gzencode($output);
        !            49: +                      return gzencode($output);
        !            50:                else
        !            51: -                      echo $output;
        !            52: +                      return $output;
        !            53:        }
        !            54:  }
        !            55:  ?>

CVSweb <webmaster@jp.NetBSD.org>