25 Commits

Author SHA1 Message Date
Ilia Ross
99b8959559 Fix to send a file in chunks
https://forum.virtualmin.com/t/upgrade-2-102-killed-download-from-server-feature/122413/7?u=ilia
2023-09-02 15:18:49 +03:00
iliajie
fab2a1c871 Fix to slurp file using local $/ instead 3de93296a9 (r114530097) 2023-05-23 14:12:28 +03:00
iliajie
c4866735ba Fix to always download altered file (no banner) 2023-05-22 12:07:37 +03:00
iliajie
794ca0f651 Add ability to read potentially dangerous files safely or force download 2023-05-20 12:05:03 +03:00
iliajie
e288f1b955 Revert recent changes to add on the PR instead https://github.com/webmin/webmin/issues/1907#issuecomment-1555642036 2023-05-20 12:01:57 +03:00
iliajie
3de93296a9 Fix to improve un-safe downloads https://github.com/webmin/webmin/issues/1907#issuecomment-1553946236 2023-05-19 13:23:43 +03:00
iliajie
7b37cedaf6 Fix to filter possible JavaScript in PDF files https://github.com/webmin/webmin/issues/1907#issuecomment-1552117601 2023-05-18 21:38:22 +03:00
iliajie
953c4ed020 Fix to consider all variations of HTML types 2023-05-17 11:53:06 +03:00
iliajie
d5a3eebe85 Fix to read full size of dangerous type 2023-05-17 11:13:22 +03:00
iliajie
c92395176f Fix to consider XML too #1907 2023-05-16 14:41:09 +03:00
Jamie Cameron
ab44aa8023 When showing HTML, filter out any JS 2023-05-15 20:48:52 -07:00
Jamie Cameron
152414d631 Revert "Fix to always force text/plain for all kind for text #1907"
This reverts commit 5e9f137adf.
2023-05-15 20:45:10 -07:00
iliajie
5e9f137adf Fix to always force text/plain for all kind for text #1907 2023-05-16 00:50:41 +03:00
iliajie
e9d58bdd42 Add API to get buffer size for file transfers 2022-11-21 21:07:00 +02:00
Jamie Cameron
11d382cb36 Use new function to get buffer size, instead of hard-coding 2021-03-27 12:17:22 -07:00
Jamie Cameron
a2dc3f7124 Switch all calls to open() to explicitly open for read 2020-03-14 17:20:54 -07:00
Jamie Cameron
50d742550e Force use of given MIME type 2014-01-23 11:08:21 -08:00
Mads Mætzke Tandrup
a86cebd731 Improve speed of downloading files from webmin by using a 1MB buffer 2013-06-18 14:03:29 +02:00
Jamie Cameron
8cebd90c09 Allow use of # in filename https://sourceforge.net/tracker/?func=detail&atid=117457&aid=3509389&group_id=17457 2012-03-20 11:56:29 -07:00
Jamie Cameron
1de2e370b5 Handle directory name with a space 2010-11-10 16:45:25 -08:00
Jamie Cameron
f5dcc06a94 Set correct content length header 2010-11-06 18:43:47 -07:00
Jamie Cameron
8c8547c7ff Don't leave dangling temp file if connection is lost 2010-11-06 11:52:10 -07:00
Jamie Cameron
04f973c82f Set content size in fetch 2008-06-18 14:18:23 +00:00
Jamie Cameron
1122178b00 Added ZIP download support 2008-01-17 23:45:44 +00:00
Jamie Cameron
fc1c1b243f Initial checkin of Webmin 2007-04-12 20:24:50 +00:00