From c8024934c081238db35e2c9332493c08d1e9b402 Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Sat, 12 Jul 2014 13:57:27 +0200 Subject: The file providing the sftp:// scheme needs to be included manually. --- apps/files_external/lib/sftp.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'apps/files_external') diff --git a/apps/files_external/lib/sftp.php b/apps/files_external/lib/sftp.php index 52cac9bb64a..804f418a455 100644 --- a/apps/files_external/lib/sftp.php +++ b/apps/files_external/lib/sftp.php @@ -18,6 +18,17 @@ class SFTP extends \OC\Files\Storage\Common { private static $tempFiles = array(); public function __construct($params) { + // The sftp:// scheme has to be manually registered via inclusion of + // the 'Net/SFTP/Stream.php' file which registers the Net_SFTP_Stream + // stream wrapper as a side effect. + // A slightly better way to register the stream wrapper is available + // since phpseclib 0.3.7 in the form of a static call to + // Net_SFTP_Stream::register() which will trigger autoloading if + // necessary. + // TODO: Call Net_SFTP_Stream::register() instead when phpseclib is + // updated to 0.3.7 or higher. + require_once 'Net/SFTP/Stream.php'; + $this->host = $params['host']; $proto = strpos($this->host, '://'); if ($proto != false) { -- cgit v1.2.3 > Apache XML Graphics FOP: https://github.com/apache/xmlgraphics-fopwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/pdf/PDFDestination.java
blob: 2b7ec0a1fea46e33b1f90e3955dbc57cc6eefb6c (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135