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