Commit 1dbd0f3
committed
Fix file upload handling for special characters
Remove dfm_htmlspecialchars() from upload filename transmission.
HTML-escaping was causing double-encoding: foo&bar.zip became
foo&bar.zip on filesystem.
Changes:
- Remove dfm_htmlspecialchars() when building filePath for upload
- Remove dfm_htmlspecialchars() from cleanup file parameter
- Add escapeHtml() for upload progress display (HTML context)
- Filename is now correctly transmitted via encodeURIComponent/rawurldecode
Result: File "foo&bar.zip" now uploads as "foo&bar.zip" on disk,
and displays correctly in upload progress.1 parent 74572a2 commit 1dbd0f3
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1245 | 1245 | | |
1246 | 1246 | | |
1247 | 1247 | | |
1248 | | - | |
| 1248 | + | |
1249 | 1249 | | |
1250 | 1250 | | |
1251 | 1251 | | |
| |||
1276 | 1276 | | |
1277 | 1277 | | |
1278 | 1278 | | |
1279 | | - | |
| 1279 | + | |
1280 | 1280 | | |
1281 | 1281 | | |
1282 | 1282 | | |
1283 | | - | |
| 1283 | + | |
1284 | 1284 | | |
1285 | 1285 | | |
1286 | 1286 | | |
| |||
0 commit comments