WordPress File Upload - Version 3.7.3

Version Description

  • improved filename sanitization function
  • added Chinese translation by Yingjun Li
Download this release

Release Info

Developer nickboss
Plugin Icon 128x128 WordPress File Upload
Version 3.7.3
Comparing to
See all releases

Code changes from version 3.7.2 to 3.7.3

languages/wp-file-upload-zh_CN.mo ADDED
Binary file
languages/wp-file-upload-zh_CN.po ADDED
@@ -0,0 +1,823 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Wordpress File Upload\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2016-02-18 22:15+0200\n"
6
+ "PO-Revision-Date: 2016-02-18 22:15+0200\n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: Iptanus Team <info@iptanus.com>\n"
9
+ "Language: zh_CN\n"
10
+ "MIME-Version: 1.0\n"
11
+ "Content-Type: text/plain; charset=UTF-8\n"
12
+ "Content-Transfer-Encoding: 8bit\n"
13
+ "X-Poedit-KeywordsList: __;gettext;gettext_noop\n"
14
+ "X-Poedit-Basepath: ..\n"
15
+ "Plural-Forms: nplurals=1; plural=0;\n"
16
+ "X-Generator: Poedit 1.7.5\n"
17
+ "X-Poedit-SearchPath-0: .\n"
18
+ "X-Poedit-SearchPathExcluded-0: vendor\n"
19
+ "X-Poedit-SearchPathExcluded-1: minified\n"
20
+ "X-Poedit-SearchPathExcluded-2: unminified\n"
21
+
22
+ #: lib/wfu_constants.php:7
23
+ msgid "Upload files"
24
+ msgstr "上传文件"
25
+
26
+ #: lib/wfu_constants.php:10
27
+ msgid "Select File/Select Files"
28
+ msgstr "选择文件/选择文件"
29
+
30
+ #: lib/wfu_constants.php:11
31
+ msgid "Upload File/Upload Files"
32
+ msgstr "上传文件/上传文件"
33
+
34
+ #: lib/wfu_constants.php:15
35
+ msgid "Select File"
36
+ msgstr "选择文件"
37
+
38
+ #: lib/wfu_constants.php:16
39
+ msgid "Upload File"
40
+ msgstr "上传文件"
41
+
42
+ #: lib/wfu_constants.php:19
43
+ msgid "File Upload Notification"
44
+ msgstr "文件上传提示"
45
+
46
+ #: lib/wfu_constants.php:20
47
+ msgid ""
48
+ "Dear Recipient,%n%%n% This is an automatic delivery message to notify you "
49
+ "that a new file has been uploaded.%n%%n%Best Regards"
50
+ msgstr ""
51
+ "亲爱的收件人,这是一封自动发送的信息,通知您收到一个新的上传文件。请查收,谢"
52
+ "谢!"
53
+
54
+ #: lib/wfu_constants.php:21
55
+ #, php-format
56
+ msgid "File %filename% uploaded successfully"
57
+ msgstr "文件上传成功"
58
+
59
+ #: lib/wfu_constants.php:22
60
+ #, php-format
61
+ msgid "File %filename% uploaded successfully but with warnings"
62
+ msgstr "文件上传成功但有警告提示"
63
+
64
+ #: lib/wfu_constants.php:23
65
+ msgid "File %filename% not uploaded"
66
+ msgstr "文件上传失败。"
67
+
68
+ #: lib/wfu_constants.php:24
69
+ msgid "File %filename% is being uploaded"
70
+ msgstr "文件正在加载中。"
71
+
72
+ #: lib/wfu_constants.php:25
73
+ msgid "Your message"
74
+ msgstr "您的信息"
75
+
76
+ #: lib/wfu_constants.php:26
77
+ msgid "Please fill in the above words: "
78
+ msgstr "请填写上面的字。"
79
+
80
+ #: lib/wfu_constants.php:28
81
+ msgid "File"
82
+ msgstr "文件"
83
+
84
+ #: lib/wfu_constants.php:29
85
+ msgid "Date"
86
+ msgstr "日期"
87
+
88
+ #: lib/wfu_constants.php:30
89
+ msgid "Size"
90
+ msgstr "大小"
91
+
92
+ #: lib/wfu_constants.php:31
93
+ msgid "User"
94
+ msgstr "用户"
95
+
96
+ #: lib/wfu_constants.php:32
97
+ msgid "Page"
98
+ msgstr "页面"
99
+
100
+ #: lib/wfu_constants.php:33
101
+ msgid "User Fields"
102
+ msgstr "用户区域"
103
+
104
+ #: lib/wfu_constants.php:34
105
+ msgid "Download"
106
+ msgstr "下载"
107
+
108
+ #: lib/wfu_constants.php:35
109
+ msgid "Download this file"
110
+ msgstr "下载这个文件"
111
+
112
+ #: lib/wfu_constants.php:36
113
+ msgid "Delete"
114
+ msgstr "删除"
115
+
116
+ #: lib/wfu_constants.php:37
117
+ msgid "Delete this file"
118
+ msgstr "删除这个文件"
119
+
120
+ #: lib/wfu_constants.php:38
121
+ msgid "Sort list based on this column"
122
+ msgstr "根据该列分类"
123
+
124
+ #: lib/wfu_constants.php:39
125
+ msgid "guest"
126
+ msgstr "客人"
127
+
128
+ #: lib/wfu_constants.php:40
129
+ msgid "unknown"
130
+ msgstr "未知"
131
+
132
+ #: lib/wfu_constants.php:42
133
+ msgid ""
134
+ "Error. Could not resolve ftp target filedir. Check the domain in 'ftpinfo' "
135
+ "attribute."
136
+ msgstr "错误:不能解决 ftp 目标文件目录。请检查 'ftpinfo'属性中的domain"
137
+
138
+ #: lib/wfu_constants.php:43
139
+ msgid "Error. Invalid ftp information. Check 'ftpinfo' attribute."
140
+ msgstr "错误:无效 ftp 信息。请检查 'ftpinfo' 属性"
141
+
142
+ #: lib/wfu_constants.php:44
143
+ msgid ""
144
+ "Error. Could not extract ftp information from 'ftpinfo' attribute. Check its "
145
+ "syntax."
146
+ msgstr "错误:不能从 'ftpinfo' 属性中提取 ftp 信息。请检查它的句法"
147
+
148
+ #: lib/wfu_constants.php:45
149
+ msgid ""
150
+ "Error. Could not resolve ftp target filename. Check the domain in 'ftpinfo' "
151
+ "attribute."
152
+ msgstr "错误:不能解决 ftp 目标文件名。请检查 'ftpinfo'属性中的 domain"
153
+
154
+ #: lib/wfu_constants.php:46
155
+ msgid ""
156
+ "Error. The upload size limit of PHP directive upload_max_filesize is "
157
+ "preventing the upload of big files.\n"
158
+ "PHP directive upload_max_filesize limit is: "
159
+ msgstr ""
160
+ "错误:上传文件PHP directive upload_max_filesize 的限制正在避免加载大文件。"
161
+ "PHP directive upload_max_filesize 的限制是:"
162
+
163
+ #: lib/wfu_constants.php:47
164
+ msgid ""
165
+ "The upload time limit of PHP directive max_input_time is preventing the "
166
+ "upload of big files.\n"
167
+ "PHP directive max_input_time limit is: "
168
+ msgstr ""
169
+ "错误:上传文件 PHP directive max_input_time 的时间限制正在避免加载大文件。"
170
+ "PHP directive upload_max_filesize 的时间限制是:"
171
+
172
+ #: lib/wfu_constants.php:48
173
+ msgid ""
174
+ "Error. Permission denied to write to target folder.\n"
175
+ "Check and correct read/write permissions of target folder."
176
+ msgstr "错误:拒绝写到目标文件夹。请检查和校对目标文件夹的读/写允许。"
177
+
178
+ #: lib/wfu_constants.php:49
179
+ msgid ""
180
+ "Error. This file was rejected because its extension is not correct. Its "
181
+ "proper filename is: "
182
+ msgstr "错误:因为扩展名不对,该文件被拒绝。正确的文件名是:"
183
+
184
+ #: lib/wfu_constants.php:50
185
+ msgid "Targer folder doesn't exist."
186
+ msgstr "目标文件夹不存在。"
187
+
188
+ #: lib/wfu_constants.php:51
189
+ msgid "Upload failed! Missing a temporary folder."
190
+ msgstr "加载失败!丢失一个临时文件夹。"
191
+
192
+ #: lib/wfu_constants.php:52
193
+ msgid "Upload failed! Permission denied to write to target folder."
194
+ msgstr "加载失败!写入目标文件夹被拒绝。"
195
+
196
+ #: lib/wfu_constants.php:53
197
+ msgid "File not allowed."
198
+ msgstr "文件不被允许。"
199
+
200
+ #: lib/wfu_constants.php:54
201
+ msgid "File is suspicious and was rejected."
202
+ msgstr "可疑文件,被拒绝。"
203
+
204
+ #: lib/wfu_constants.php:55
205
+ msgid "The uploaded file exceeds the file size limit."
206
+ msgstr "加载的文件超出文件尺寸限制。"
207
+
208
+ #: lib/wfu_constants.php:56
209
+ msgid "The uploaded file exceeds 2GB and is not supported by this server."
210
+ msgstr "上传文件超出2GB,服务器不支持。"
211
+
212
+ #: lib/wfu_constants.php:57
213
+ msgid ""
214
+ "Upload failed! The uploaded file exceeds the file size limit of the server. "
215
+ "Please contact the administrator."
216
+ msgstr "上传失败!上传文件超出服务器的文件大小限制。请联系管理员。"
217
+
218
+ #: lib/wfu_constants.php:58
219
+ msgid ""
220
+ "Upload failed! The duration of the upload exceeded the time limit of the "
221
+ "server. Please contact the administrator."
222
+ msgstr "上传失败!上传时间超出服务器的时间限制。请联系管理员。"
223
+
224
+ #: lib/wfu_constants.php:59
225
+ msgid ""
226
+ "Upload failed! The uploaded file exceeds the MAX_FILE_SIZE directive that "
227
+ "was specified in the HTML form."
228
+ msgstr "上传失败!上传文件超出HTML格式中规定的最大文件大小限制。"
229
+
230
+ #: lib/wfu_constants.php:60
231
+ msgid "Upload failed! The uploaded file was only partially uploaded."
232
+ msgstr "上传失败!只生产了部分加载文件。"
233
+
234
+ #: lib/wfu_constants.php:61
235
+ msgid "Upload failed! No file was uploaded."
236
+ msgstr "上传失败!文件没有载入。"
237
+
238
+ #: lib/wfu_constants.php:62
239
+ msgid "Upload failed! Failed to write file to disk."
240
+ msgstr "上传失败!写文件到磁盘失败。"
241
+
242
+ #: lib/wfu_constants.php:63
243
+ msgid ""
244
+ "Upload failed! Error occured while moving temporary file. Please contact "
245
+ "administrator."
246
+ msgstr "上传失败!移动临时文件时出现故障。请联系管理员。"
247
+
248
+ #: lib/wfu_constants.php:64
249
+ msgid "Upload cancelled!"
250
+ msgstr ""
251
+
252
+ #: lib/wfu_constants.php:65
253
+ msgid ""
254
+ "Upload failed! A PHP extension stopped the file upload. PHP does not provide "
255
+ "a way to ascertain which extension caused the file upload to stop; examining "
256
+ "the list of loaded extensions with phpinfo() may help."
257
+ msgstr ""
258
+ "上传失败!PHP扩展名终止文件加载。PHP 不明确提供那个扩展名造成文件加载终止;检"
259
+ "查带 phpinfo() 的加载扩展名列表可能会有帮助。"
260
+
261
+ #: lib/wfu_constants.php:66
262
+ msgid "Upload failed! Error occured while attemting to upload the file."
263
+ msgstr "上传失败!试图加载文件时出现错误。"
264
+
265
+ #: lib/wfu_constants.php:67 lib/wfu_constants.php:187
266
+ msgid "Upload failed!"
267
+ msgstr "上传失败!"
268
+
269
+ #: lib/wfu_constants.php:68
270
+ msgid "No file!"
271
+ msgstr "没有忘记!"
272
+
273
+ #: lib/wfu_constants.php:69
274
+ msgid ""
275
+ "Upload failed! The upload has been canceled by the user or the browser "
276
+ "dropped the connection."
277
+ msgstr "上传失败!该上传被用户取消,或者浏览器失去连接。"
278
+
279
+ #: lib/wfu_constants.php:70
280
+ msgid "Upload failed! Unknown error."
281
+ msgstr "上传失败!未知故障。"
282
+
283
+ #: lib/wfu_constants.php:71
284
+ msgid "Please contact the administrator."
285
+ msgstr "请联系管理员。"
286
+
287
+ #: lib/wfu_constants.php:72
288
+ msgid "No result from remote server!"
289
+ msgstr "没有来自远程服务器的结果!"
290
+
291
+ #: lib/wfu_constants.php:73
292
+ msgid " but with warnings"
293
+ msgstr "但是带警告提示"
294
+
295
+ #: lib/wfu_constants.php:74 lib/wfu_constants.php:76
296
+ msgid "Warning: JSON parse error."
297
+ msgstr "警告:JSON 语法分析错误。"
298
+
299
+ #: lib/wfu_constants.php:75
300
+ msgid ""
301
+ "Upload parameters of this file, passed as JSON string to the handler, could "
302
+ "not be parsed."
303
+ msgstr "加载该文件参数,作为JSON 字符串传到handler,不能进行语法分析。"
304
+
305
+ #: lib/wfu_constants.php:77
306
+ msgid ""
307
+ "UploadStates, passed as JSON string to the handler, could not be parsed."
308
+ msgstr "加载状态,作为为JSON 字符串传到handler,不能进行语法分析。"
309
+
310
+ #: lib/wfu_constants.php:78
311
+ msgid ""
312
+ "Redirection to classic form functionality occurred due to unknown error."
313
+ msgstr "由于未知故障,出现重新指向到classic form functionality"
314
+
315
+ #: lib/wfu_constants.php:79
316
+ msgid ""
317
+ "Redirection to classic form functionality occurred because AJAX is not "
318
+ "supported."
319
+ msgstr "因为不支持 AJAX,出现重新指向到classic form functionality"
320
+
321
+ #: lib/wfu_constants.php:80
322
+ msgid ""
323
+ "Redirection to classic form functionality occurred because HTML5 is not "
324
+ "supported."
325
+ msgstr "因为不支持 HTML5,出现重新指向到classic form functionality"
326
+
327
+ #: lib/wfu_constants.php:81
328
+ msgid ""
329
+ "Redirection to classic form functionality occurred due to JSON parse error."
330
+ msgstr "由于JSON语法分析错误,出现重新指向到classic form functionality"
331
+
332
+ #: lib/wfu_constants.php:82
333
+ msgid "Please enable popup windows from the browser's settings!"
334
+ msgstr "请在浏览器设置中启动 popup 打开窗口!"
335
+
336
+ #: lib/wfu_constants.php:83
337
+ msgid "cannot be empty!"
338
+ msgstr "不能为空白!"
339
+
340
+ #: lib/wfu_constants.php:84
341
+ msgid "number not valid!"
342
+ msgstr "无效数字!"
343
+
344
+ #: lib/wfu_constants.php:85
345
+ msgid "email not valid!"
346
+ msgstr "无效邮件!"
347
+
348
+ #: lib/wfu_constants.php:86
349
+ msgid "emails do not match!"
350
+ msgstr "邮箱不符!"
351
+
352
+ #: lib/wfu_constants.php:87
353
+ msgid "no base email field in group!"
354
+ msgstr "在组中没有基本邮件区域!"
355
+
356
+ #: lib/wfu_constants.php:88
357
+ msgid "passwords do not match!"
358
+ msgstr "口令不符!"
359
+
360
+ #: lib/wfu_constants.php:89
361
+ msgid "no base password field in group!"
362
+ msgstr "在组中没有基本口令区域!"
363
+
364
+ #: lib/wfu_constants.php:90
365
+ msgid "checkbox unchecked!"
366
+ msgstr "检查框没打记号!"
367
+
368
+ #: lib/wfu_constants.php:91
369
+ msgid "no option selected!"
370
+ msgstr "没选择选项!"
371
+
372
+ #: lib/wfu_constants.php:92
373
+ msgid "no item selected!"
374
+ msgstr "没选择任何物件!"
375
+
376
+ #: lib/wfu_constants.php:93
377
+ msgid ""
378
+ "There are more than one instances of the plugin in this page with the same "
379
+ "id. Please change it."
380
+ msgstr "在这个页面中有多个带相同 ID 的插件实例, 请更改。"
381
+
382
+ #: lib/wfu_constants.php:94
383
+ msgid ""
384
+ "Cannot edit the shortcode because the page has been modified. Please reload "
385
+ "the page."
386
+ msgstr "因为页面被修改,不能编辑短码。请重新加载页面。"
387
+
388
+ #: lib/wfu_constants.php:95
389
+ msgid ""
390
+ "ERROR: Captcha not supported! You have an old PHP version. Upgrade your PHP "
391
+ "or use RecaptchaV2 (no account)."
392
+ msgstr ""
393
+ "错误: Captcha 不支持!你有一个旧 PHP 版本。升级你的 PHP 或使用 "
394
+ "RecaptchaV2 。"
395
+
396
+ #: lib/wfu_constants.php:96
397
+ msgid ""
398
+ "ERROR: Only one instance of RecaptchaV1 can exist on the same page. Please "
399
+ "notify administrator."
400
+ msgstr "错误:相同页面中只能有一个 RecaptchaV1 实例 存在。请通知管理员。"
401
+
402
+ #: lib/wfu_constants.php:97
403
+ msgid ""
404
+ "ERROR: Only one instance of RecaptchaV1 can exist on the same page. Please "
405
+ "use RecaptchaV1 (no account)."
406
+ msgstr "错误:相同页面中只能有一个 RecaptchaV1 实例 存在。请使用 RecaptchaV1 "
407
+
408
+ #: lib/wfu_constants.php:98
409
+ msgid "ERROR: No site key. Please contact administrator!"
410
+ msgstr "错误:没有site key. 请联系管理员!"
411
+
412
+ #: lib/wfu_constants.php:99
413
+ msgid ""
414
+ "ERROR: No site key defined! Please go to the plugin settings in Dashboard to "
415
+ "define Google Recaptcha keys."
416
+ msgstr ""
417
+ "错误:没有已定义的 site key! 请在 Dashboard 的插件设置中定义 谷歌 Recaptcha "
418
+ "keys。"
419
+
420
+ #: lib/wfu_constants.php:100
421
+ msgid "Bad captcha image!"
422
+ msgstr "损坏的 captcha 图像!"
423
+
424
+ #: lib/wfu_constants.php:101
425
+ msgid "No input!"
426
+ msgstr "没有输入!"
427
+
428
+ #: lib/wfu_constants.php:102
429
+ msgid "Captcha not completed!"
430
+ msgstr "captcha 不完整!"
431
+
432
+ #: lib/wfu_constants.php:103
433
+ msgid "Wrong captcha!"
434
+ msgstr "错误的 captcha!"
435
+
436
+ #: lib/wfu_constants.php:104
437
+ msgid "Error refreshing captcha!"
438
+ msgstr "更新 captcha 故障!"
439
+
440
+ #: lib/wfu_constants.php:105
441
+ msgid "Unknown captcha error!"
442
+ msgstr "未知 captcha 错误!"
443
+
444
+ #: lib/wfu_constants.php:106
445
+ msgid "Captcha not supported by your browser!"
446
+ msgstr "你的浏览器不支持 captcha!"
447
+
448
+ #: lib/wfu_constants.php:107
449
+ msgid "the secret parameter is missing"
450
+ msgstr "秘密参数丢失"
451
+
452
+ #: lib/wfu_constants.php:108
453
+ msgid "the secret parameter is invalid or malformed"
454
+ msgstr "秘密参数无效或出错"
455
+
456
+ #: lib/wfu_constants.php:109
457
+ msgid "the response parameter is missing"
458
+ msgstr "相应参数丢失"
459
+
460
+ #: lib/wfu_constants.php:110
461
+ msgid "the response parameter is invalid or malformed"
462
+ msgstr "相应参数无效或出错"
463
+
464
+ #: lib/wfu_constants.php:111
465
+ msgid "Please do not use drag drop due to an internal problem."
466
+ msgstr "由于内部问题,请不要使用托拽功能。"
467
+
468
+ #: lib/wfu_constants.php:112
469
+ #, php-format
470
+ msgid "Error during chunked upload. Unique ID empty in chunk %d"
471
+ msgstr "分片加载时出错。分片 %d 中唯一的ID 空白"
472
+
473
+ #: lib/wfu_constants.php:113
474
+ msgid "Chunked upload is not allowed!"
475
+ msgstr "不允许分片加载!"
476
+
477
+ #: lib/wfu_constants.php:114
478
+ msgid "Chunked upload aborted due to error in previous chunk!"
479
+ msgstr "由于前一分片出错,分片加载终止!"
480
+
481
+ #: lib/wfu_constants.php:115
482
+ msgid "Chunked upload failed, final file could not be created!"
483
+ msgstr "分片加载失败,不能生成最终文件!"
484
+
485
+ #: lib/wfu_constants.php:116
486
+ #, php-format
487
+ msgid "Could not write file chuck to destination on chunk %d"
488
+ msgstr "不能将文件分片写到分片 %d 中"
489
+
490
+ #: lib/wfu_constants.php:117
491
+ #, php-format
492
+ msgid "Could not enlarge destination file on chunk %d"
493
+ msgstr "不能加大分片 %d 上的目标文件"
494
+
495
+ #: lib/wfu_constants.php:118
496
+ #, php-format
497
+ msgid "Could not open file handles on chunk %d"
498
+ msgstr "不能打开分片 %d 上的文件 handles"
499
+
500
+ #: lib/wfu_constants.php:119
501
+ msgid "You are not allowed to delete this file!"
502
+ msgstr "不允许删除该文件!"
503
+
504
+ #: lib/wfu_constants.php:121
505
+ msgid "Upload skipped! File already exists."
506
+ msgstr "跳过加载!文件已经存在。"
507
+
508
+ #: lib/wfu_constants.php:122
509
+ msgid "The extension of the file does not match its contents."
510
+ msgstr "该文件的扩展名与其内容不符。"
511
+
512
+ #: lib/wfu_constants.php:123
513
+ msgid ""
514
+ "Upload succeeded but the file is suspicious because its contents do not "
515
+ "match its extension. Its proper filename is: "
516
+ msgstr "上传成功,但因为他的内容与其扩展名不符,文件可疑。正确的文件名是:"
517
+
518
+ #: lib/wfu_constants.php:124
519
+ msgid "No files have been selected!"
520
+ msgstr "没有选择文件!"
521
+
522
+ #: lib/wfu_constants.php:125
523
+ msgid "WPFilebase Plugin not updated because there were no files uploaded."
524
+ msgstr "因为没有加载的文件,WPFilebase 插件没更新"
525
+
526
+ #: lib/wfu_constants.php:126
527
+ msgid "Notification email was not sent because there were no files uploaded."
528
+ msgstr "因为没有加载文件,通知邮件没发出。"
529
+
530
+ #: lib/wfu_constants.php:127
531
+ msgid ""
532
+ "Notification email was not sent because no recipients were defined. Please "
533
+ "check notifyrecipients attribute in the shortcode."
534
+ msgstr ""
535
+ "因为没有定义收件人,通知邮件没发出。请检查 短码中的 notifyrecipients 属性"
536
+
537
+ #: lib/wfu_constants.php:128
538
+ msgid ""
539
+ "Notification email was not sent due to an error. Please check "
540
+ "notifyrecipients, notifysubject and notifymessage attributes for errors."
541
+ msgstr ""
542
+ "由于出错,通知邮件没发出。请检查 notifyrecipients, notifysubject 和 "
543
+ "notifymessage 属性"
544
+
545
+ #: lib/wfu_constants.php:129
546
+ msgid ""
547
+ "Redirection not executed because redirection link is empty. Please check "
548
+ "redirectlink attribute."
549
+ msgstr "因为重新定位链接空白,重新定位不执行。请检查 redirectlink 属性。"
550
+
551
+ #: lib/wfu_constants.php:130
552
+ msgid ""
553
+ "Redirection not executed because not all files were successfully uploaded."
554
+ msgstr "因为不是所有的文件都成功加载,重新定位不执行。"
555
+
556
+ #: lib/wfu_constants.php:132
557
+ msgid ""
558
+ "Failed to add the shortcode to the page/post. Please try again. If the "
559
+ "message persists, contact administrator."
560
+ msgstr "添加短码到 page/post 失败。请重新试一下。 如果仍有错误, 联系管理员。"
561
+
562
+ #: lib/wfu_constants.php:133
563
+ msgid ""
564
+ "Failed to edit the shortcode because the contents of the page changed. Try "
565
+ "again to edit the shortcode."
566
+ msgstr "因为页面内容改变,编辑短码失败。再重新编辑该短码。"
567
+
568
+ #: lib/wfu_constants.php:134
569
+ msgid ""
570
+ "Failed to delete the shortcode because the contents of the page changed. Try "
571
+ "again to delete it."
572
+ msgstr "因为页面内容改变,删除短码失败。再重新删除。"
573
+
574
+ #: lib/wfu_constants.php:135
575
+ msgid ""
576
+ "The page containing the shortcode has been modified and it is no longer "
577
+ "valid. Please go back to reload the shortcode."
578
+ msgstr "含有短码的页面已经被修改,它不再有效。请回到重新加载该短码。"
579
+
580
+ #: lib/wfu_constants.php:136
581
+ msgid ""
582
+ "Failed to update the shortcode because the contents of the page changed. Go "
583
+ "back to reload the shortcode."
584
+ msgstr "因为页面内容被修改,更新短码失败。回到重新加载该短码。"
585
+
586
+ #: lib/wfu_constants.php:137
587
+ msgid ""
588
+ "Failed to update the shortcode. Please try again. If the problem persists, "
589
+ "go back and reload the shortcode."
590
+ msgstr "更新短码失败。请重新再试。如果问题仍存在,返回查询加载该短码。"
591
+
592
+ #: lib/wfu_constants.php:139
593
+ msgid "This is a test message"
594
+ msgstr "这是一个测试信息"
595
+
596
+ #: lib/wfu_constants.php:140
597
+ msgid "This is a test administrator message"
598
+ msgstr "这是一个测试管理员信息"
599
+
600
+ #: lib/wfu_constants.php:141
601
+ msgid "File testfile 1 under test"
602
+ msgstr "测试中的文件 testfile 1"
603
+
604
+ #: lib/wfu_constants.php:142
605
+ msgid "File testfile 1 message"
606
+ msgstr "文件 testfile 1 信息"
607
+
608
+ #: lib/wfu_constants.php:143
609
+ msgid "File testfile 1 administrator message"
610
+ msgstr "文件 testfile 1 管理员信息"
611
+
612
+ #: lib/wfu_constants.php:144
613
+ msgid "File testfile 2 under test"
614
+ msgstr "测试中的文件 testfile 2"
615
+
616
+ #: lib/wfu_constants.php:145
617
+ msgid "File testfile 2 message"
618
+ msgstr "文件 testfile 2 信息"
619
+
620
+ #: lib/wfu_constants.php:146
621
+ msgid "File testfile 2 administrator message"
622
+ msgstr "文件 testfile 2 管理员信息"
623
+
624
+ #: lib/wfu_constants.php:148
625
+ msgid ""
626
+ "Insert variable %userid% inside text. It will be replaced by the id of the "
627
+ "current user."
628
+ msgstr "在文本中插入变量 %userid%。 它将被当前用户的 ID 替换。"
629
+
630
+ #: lib/wfu_constants.php:149
631
+ msgid ""
632
+ "Insert variable %username% inside text. It will be replaced by the username "
633
+ "of the current user."
634
+ msgstr "在文本中插入变量 %username%。 它将被当前用户的用户名替换。"
635
+
636
+ #: lib/wfu_constants.php:150
637
+ msgid ""
638
+ "Insert variable %useremail% inside text. It will be replaced by the email of "
639
+ "the current user."
640
+ msgstr "在文本中插入变量 %useremail%。 它将被当前用户的邮替换。"
641
+
642
+ #: lib/wfu_constants.php:151
643
+ msgid ""
644
+ "Insert variable %filename% inside text. It will be replaced by the filename "
645
+ "of the uploaded file."
646
+ msgstr "在文本中插入变量 %filename%。 它将被上传文件的文件名替换。"
647
+
648
+ #: lib/wfu_constants.php:152
649
+ msgid ""
650
+ "Insert variable %filepath% inside text. It will be replaced by the full "
651
+ "filepath of the uploaded file."
652
+ msgstr "在文本中插入变量 %filepath%。 它将被上传文件的文件路径替换。"
653
+
654
+ #: lib/wfu_constants.php:153
655
+ msgid ""
656
+ "Insert variable %blogid% inside text. It will be replaced by the blog id of "
657
+ "the website."
658
+ msgstr "在文本中插入变量 %blogid%。 它将被该网站的blog ID替换。"
659
+
660
+ #: lib/wfu_constants.php:154
661
+ msgid ""
662
+ "Insert variable %pageid% inside text. It will be replaced by the id of the "
663
+ "current page."
664
+ msgstr "在文本中插入变量 %pageid%。 它将被当前页面的 ID 替换。"
665
+
666
+ #: lib/wfu_constants.php:155
667
+ msgid ""
668
+ "Insert variable %pagetitle% inside text. It will be replaced by the title of "
669
+ "the current page."
670
+ msgstr "在文本中插入变量 %pagetitle%。 它将被上传文件的名称替换。"
671
+
672
+ #: lib/wfu_constants.php:156
673
+ msgid ""
674
+ "Insert variable %userdataXXX% inside text. Select the user field from the "
675
+ "drop-down list. It will be replaced by the value that the user entered in "
676
+ "this field."
677
+ msgstr ""
678
+ "在文本中插入变量 %userdataXXX%。从下拉表中选择该用户区域。它将被用户在此区域"
679
+ "输入的值替换。"
680
+
681
+ #: lib/wfu_constants.php:157
682
+ msgid "Insert variable %n% inside text to denote a line change."
683
+ msgstr "在文本中插入变量 %n%。表明一行变化。"
684
+
685
+ #: lib/wfu_constants.php:159
686
+ msgid "Test Mode"
687
+ msgstr "测试模式"
688
+
689
+ #: lib/wfu_constants.php:160
690
+ msgid "select dir..."
691
+ msgstr "选择 dir ..."
692
+
693
+ #: lib/wfu_constants.php:161
694
+ msgid "type dir"
695
+ msgstr "键入 dir"
696
+
697
+ #: lib/wfu_constants.php:162
698
+ msgid "Upload path: %filepath%"
699
+ msgstr "加载路径:%filepath%"
700
+
701
+ #: lib/wfu_constants.php:163
702
+ msgid "Failed upload path: %filepath%"
703
+ msgstr "加载路径失败: %filepath%"
704
+
705
+ #: lib/wfu_constants.php:164
706
+ msgid " (required)"
707
+ msgstr "(必需)"
708
+
709
+ #: lib/wfu_constants.php:165
710
+ msgid "Files are being uploaded. Are you sure you want to exit the page?"
711
+ msgstr "文件正在加载中,你确定要退出这个页面吗?"
712
+
713
+ #: lib/wfu_constants.php:166
714
+ msgid "checking captcha..."
715
+ msgstr "正在检查 captcha ..."
716
+
717
+ #: lib/wfu_constants.php:167
718
+ msgid "refreshing..."
719
+ msgstr "正在更新 ..."
720
+
721
+ #: lib/wfu_constants.php:168
722
+ msgid "correct captcha"
723
+ msgstr "正确的 captcha"
724
+
725
+ #: lib/wfu_constants.php:169
726
+ msgid "click to continue the upload"
727
+ msgstr "点击继续上传"
728
+
729
+ #: lib/wfu_constants.php:170
730
+ msgid "Are you sure you want to delete this file?"
731
+ msgstr "确定要删除这个文件吗?"
732
+
733
+ #: lib/wfu_constants.php:171
734
+ msgid "Are you sure that you want to cancel the upload?"
735
+ msgstr ""
736
+
737
+ #: lib/wfu_constants.php:172
738
+ msgid "cancel upload of this file"
739
+ msgstr ""
740
+
741
+ #: lib/wfu_constants.php:173
742
+ msgid "Upload in progress"
743
+ msgstr "上传正在进行中"
744
+
745
+ #: lib/wfu_constants.php:174
746
+ msgid "Upload in progress with warnings!"
747
+ msgstr "上传正在进行中,有警告提示!"
748
+
749
+ #: lib/wfu_constants.php:175
750
+ msgid "Upload in progress but some files already failed!"
751
+ msgstr "上传正在进行中,有些文件已经加载失败!"
752
+
753
+ #: lib/wfu_constants.php:176
754
+ msgid "Upload in progress but no files uploaded so far!"
755
+ msgstr "上传正在进行中,还没有文件载入!"
756
+
757
+ #: lib/wfu_constants.php:177
758
+ msgid "All files uploaded successfully"
759
+ msgstr "所有危机上传成功"
760
+
761
+ #: lib/wfu_constants.php:178
762
+ msgid "All files uploaded successfully but there are warnings!"
763
+ msgstr "所有文件上传成功,但有警告提示!"
764
+
765
+ #: lib/wfu_constants.php:179
766
+ msgid "File uploaded successfully but there are warnings!"
767
+ msgstr "文件上传成功,但有警告提示!"
768
+
769
+ #: lib/wfu_constants.php:180
770
+ msgid "Some files failed to upload!"
771
+ msgstr "部分文件上传失败!"
772
+
773
+ #: lib/wfu_constants.php:181
774
+ msgid "All files failed to upload"
775
+ msgstr "所以我就上传失败"
776
+
777
+ #: lib/wfu_constants.php:182
778
+ msgid "File failed to upload"
779
+ msgstr "文件上传失败"
780
+
781
+ #: lib/wfu_constants.php:183
782
+ msgid "There are no files to upload!"
783
+ msgstr "没有要上传的文件!"
784
+
785
+ #: lib/wfu_constants.php:184
786
+ msgid "Test upload message"
787
+ msgstr "测试上传信息"
788
+
789
+ #: lib/wfu_constants.php:185
790
+ msgid "JSON parse warning!"
791
+ msgstr "JSON语法分析警告!"
792
+
793
+ #: lib/wfu_constants.php:186
794
+ msgid "please wait while redirecting..."
795
+ msgstr "请等候,正在重新定位 ..."
796
+
797
+ #: lib/wfu_constants.php:188
798
+ msgid "Open visual shortcode editor in new window"
799
+ msgstr "在新窗口打开视频 shortcode 编辑器"
800
+
801
+ #: lib/wfu_constants.php:189
802
+ msgid "loading visual editor"
803
+ msgstr "加载视频编辑器"
804
+
805
+ #: lib/wfu_constants.php:190
806
+ msgid "Clear file list?"
807
+ msgstr "清除文件列表?"
808
+
809
+ #: lib/wfu_constants.php:191
810
+ msgid "DROP HERE"
811
+ msgstr "放在这里"
812
+
813
+ #: lib/wfu_constants.php:193
814
+ msgid "Wordpress File Upload Form"
815
+ msgstr "Wordpress 文件上传格式"
816
+
817
+ #: lib/wfu_constants.php:194
818
+ msgid "Wordpress File Upload plugin uploader for sidebars"
819
+ msgstr "针对sidebars 的 Wordpress 文件上传插件工具"
820
+
821
+ #: lib/wfu_constants.php:195
822
+ msgid "Upload Files"
823
+ msgstr "上传文件"
lib/wfu_constants.php CHANGED
@@ -233,6 +233,7 @@ $GLOBALS["WFU_GLOBALS"] = array(
233
  );
234
  //other plugin values
235
  $GLOBALS["WFU_GLOBALS"] += array(
 
236
  "WFU_PHP_ARRAY_MAXLEN" => array( "Max PHP Array Length", "string", "10000", "The maximum allowable number of items of a PHP array." ),
237
  "WFU_HISTORYLOG_TABLE_MAXROWS" => array( "History Log Table Rows Per Page", "integer", 25, "The number of rows per page of the History Log table." )
238
  );
233
  );
234
  //other plugin values
235
  $GLOBALS["WFU_GLOBALS"] += array(
236
+ "WFU_SANITIZE_FILENAME_MODE" => array( "Filename Sanitization Mode", "string", "strict", "The sanitization mode for filenames. It can be 'strict' or 'loose'." ),
237
  "WFU_PHP_ARRAY_MAXLEN" => array( "Max PHP Array Length", "string", "10000", "The maximum allowable number of items of a PHP array." ),
238
  "WFU_HISTORYLOG_TABLE_MAXROWS" => array( "History Log Table Rows Per Page", "integer", 25, "The number of rows per page of the History Log table." )
239
  );
lib/wfu_functions.php CHANGED
@@ -3,16 +3,12 @@
3
  //********************* String Functions ***************************************************************************************************
4
 
5
  function wfu_upload_plugin_clean($label) {
6
- /**
7
- * Regular expressions to change some characters.
8
- */
9
-
10
- $search = array ('@[eeeeEE]@i','@[aaaAA]@i','@[iiII]@i','@[uuuUU]@i','@[ooOO]@i',
11
- '@[c]@i','@[^a-zA-Z0-9._]@');
12
- $replace = array ('e','a','i','u','o','c','-');
13
- $clean = preg_replace($search, $replace, $label);
14
- $clean = strtolower($clean); // Convert in lower case
15
- // $label = preg_replace('/[\\/\?%\*:\|\"<>]/', '-', $label);
16
 
17
  return $clean;
18
  }
3
  //********************* String Functions ***************************************************************************************************
4
 
5
  function wfu_upload_plugin_clean($label) {
6
+ $clean = sanitize_file_name($label);
7
+ if ( WFU_VAR("WFU_SANITIZE_FILENAME_MODE") != "loose" ) {
8
+ $search = array ( '@[^a-zA-Z0-9._]@' );
9
+ $replace = array ( '-' );
10
+ $clean = preg_replace($search, $replace, remove_accents($clean));
11
+ }
 
 
 
 
12
 
13
  return $clean;
14
  }
readme.txt CHANGED
@@ -48,6 +48,7 @@ The plugin is translated in the following languages:
48
  * Polish
49
  * Greek
50
  * Dutch, kindly provided by Ruben Heynderycx
 
51
 
52
  Please note that old desktop browsers or mobile browsers may not support all of the above functionalities. In order to get full functionality use the latest versions browsers, supporting HTML5, AJAX and CSS3.
53
 
@@ -133,6 +134,10 @@ There is an option in plugin's settings in Dashboard to relax the CSS rules, so
133
 
134
  == Changelog ==
135
 
 
 
 
 
136
  = 3.7.2 =
137
  * added option to cancel upload
138
  * setting added so that upload does not fail when site_url and home_url are different
@@ -555,6 +560,9 @@ Initial version.
555
 
556
  == Upgrade Notice ==
557
 
 
 
 
558
  = 3.7.2 =
559
  Upgrade to introduce some new features and fix some minor bugs.
560
 
48
  * Polish
49
  * Greek
50
  * Dutch, kindly provided by Ruben Heynderycx
51
+ * Chinese, kindly provided by Yingjun Li
52
 
53
  Please note that old desktop browsers or mobile browsers may not support all of the above functionalities. In order to get full functionality use the latest versions browsers, supporting HTML5, AJAX and CSS3.
54
 
134
 
135
  == Changelog ==
136
 
137
+ = 3.7.3 =
138
+ * improved filename sanitization function
139
+ * added Chinese translation by Yingjun Li
140
+
141
  = 3.7.2 =
142
  * added option to cancel upload
143
  * setting added so that upload does not fail when site_url and home_url are different
560
 
561
  == Upgrade Notice ==
562
 
563
+ = 3.7.3 =
564
+ Upgrade to introduce some improvements and new languages.
565
+
566
  = 3.7.2 =
567
  Upgrade to introduce some new features and fix some minor bugs.
568
 
release_notes.txt CHANGED
@@ -1,12 +1,3 @@
1
- <!-- --><span><strong>Latest release notes: </strong>This release introduces some new features. The most important are:</span>
2
- <ul style="list-style:disc; padding-left:20px;">
3
- <li>Now a user can cancel an upload while it is in progress by pressing the Esc key while the filename textbox has focus.</li>
4
- <li>On some occassions where the Wordpress URL is different than Site URL the uploads may fail. A new option, <strong>Admin Domain</strong>, has been added in plugin's Settings in Dashboard, to resolve this problem.</li>
5
- <li>When there are custom user fields that are required, the keyword <strong>(required)</strong> is added at the end of the field's label. A new attribute, <strong>requiredlabel</strong>, is added in the uploader's shortcode so that the keyword can change. Furthermore, the keyword can now be styled separately from the label using css.</li>
6
- <li>If the uploader shortcode has been configured to add the uploaded files to Media Library (using medialink attribute), then any custom user fields submitted together with the file will also be included as metadata. Furthermore, a new option has been added in plugin's Settings in Dashboard to determine if these fields will be shown in Media Library or not.</li>
7
- <li>Added Dutch translation, kindly provided by <strong>Ruben Heynderycx</strong>.</li>
8
- </ul><span>
9
 
10
- You can find more details in the Release Notes area of the plugin's </span><a href="http://www.iptanus.com/wordpress-plugins/wordpress-file-upload/">support page</a><span>.</span>
11
- <!-- -->
12
- <!-- -->
1
+ <span><strong>Latest release notes: </strong>This release introduces an improvement in <strong>filename sanitization</strong>. Before a file is uploaded its name is checked for invalid characters and corrected (sanitized). Now the plugin uses native Wordpress functions to sanitize the filename. It uses two sanitization modes, a <em>'loose'</em> one that only strips invalid characters and a <em>'strict'</em> one (default) that also converts non-latin characters to latin. Mode is defined by <em>'Filename Sanitization Mode'</em> environment variable. Furthermore this release introduces <strong>Chinese translation</strong>, kindly provided by <strong>Yingjun Li</strong>
 
 
 
 
 
 
 
2
 
3
+ For more details about this version's changes please visit the Release Notes of the plugin's </span><a href="http://www.iptanus.com/wordpress-plugins/wordpress-file-upload/">support page</a><span>.</span>
 
 
wordpress_file_upload.php CHANGED
@@ -4,7 +4,7 @@ if( !session_id() ) { session_start(); }
4
  /*
5
  Plugin URI: http://www.iptanus.com/support/wordpress-file-upload
6
  Description: Simple interface to upload files from a page.
7
- Version: 3.7.2
8
  Author: Nickolas Bossinas
9
  Author URI: http://www.iptanus.com
10
  */
4
  /*
5
  Plugin URI: http://www.iptanus.com/support/wordpress-file-upload
6
  Description: Simple interface to upload files from a page.
7
+ Version: 3.7.3
8
  Author: Nickolas Bossinas
9
  Author URI: http://www.iptanus.com
10
  */