65 Commits

Author SHA1 Message Date
thepurpleblob
15c31560d8 MDL-14659
Add bypass list for proxy usage.
2008-05-06 14:59:39 +00:00
sam_marshall
5ef082df38 doc comment change: improved comment on download_file_content to clarify $headers 2008-04-10 12:07:58 +00:00
scyrma
74369ab567 MDL-13792 - Commiting Patch by Skodak, fixing problem with japanese characters under some conditions. This has been reported to work, if nobody else
comes foward with bugs related to this, it will need to be changed everywhere else where there is no urlencoding done at this time. (merge from 1.8
and 1.9)
2008-04-08 03:04:52 +00:00
dongsheng
5a2a53316f MDL-14129, remove all the other error() call 2008-04-04 02:54:20 +00:00
nicolasconnault
83947a36a8 MDL-14073 New param for download_file_content: skipcertcheck. ssl now used in recaptchalib 2008-03-31 12:13:46 +00:00
sam_marshall
44e02d79ab MDL-14051 Changed timeout behaviour for download_file_content so curl has a read timeout 2008-03-26 13:00:48 +00:00
skodak
36bddcf5fb MDL-13949 removed adobe reader XSS bug workaround; merged from MOODLE_19_STABLE 2008-03-17 12:36:26 +00:00
skodak
f36cbf1d6e MDL-13214 rebuild_course_cache fixes and speed improvements; merged from MOODLE_19_STABLE 2008-02-01 07:48:26 +00:00
skodak
599f06cff1 MDL-11845 fixed security issues in curl related code in new download_file_content() + minor fixes in Snoopy; merged from MOODLE_19_STABLE 2007-12-31 23:18:06 +00:00
skodak
6bf55889dd MDL-12782 magpie now uses download_file_content() - that should solve several remote RSS issues including proxy user/password + several download_file_content() improvements + other minor fixes; merged from MOODLE_19_STABLE 2007-12-31 15:37:12 +00:00
poltawski
ee3501f124 MDL-11845 - use the http 1.0 'Moved Temporarily' rather than unhelpful 'Found'
merged from MOODLE_19_STABLE
2007-12-30 23:10:42 +00:00
skodak
5f8bdc17a8 MDL-11845 removing curl emulation library, snoopy has better support for proxies and seems to be more reliable on different platforms; spelling correction cURL instead of Curl; adding all proxy admin settings; better debug messages for file downloading; SOCKS5 proxy support; merged from MOODLE_19_STABLE 2007-12-30 19:42:51 +00:00
toyomoyo
4f047de2aa making multibyte filename appear correctly under IE download 2007-10-30 00:35:18 +00:00
poltawski
08ec989fd0 MDL-11840 - curl was set to use CONNECTs for all http requests. This is disallowed
by most http proxies to prevent tunneling. Added some debugging in case of failure.

Merged from MOODLE_19_STABLE
2007-10-19 14:47:14 +00:00
poltawski
e27f076535 MDL-11766 download_file_content is quite broken with proxies - lacking global
CFG definition, so must never have worked, also incorrectly specified proxyhost..

Merged from MOODLE_19_STABLE
2007-10-19 11:45:21 +00:00
nfreear
42ead7d7cd Fix MDL-7436 Accessibility "Indicate type of resource in the name of the resource" 2007-09-25 14:59:16 +00:00
nicolasconnault
76ca1ff134 MDL-11075 Now saving to temp file, then outputting using filelib's readfile_chunked() method. Also cleaned up whitespace in filelib.php (blame vim!). 2007-08-31 13:54:13 +00:00
moodler
68da9722db Merged new mime-types and icons for Microsoft files MDL-9940 2007-08-23 06:50:37 +00:00
Martin Langhoff
13534ef716 cvsimport fixups 2007-08-29 13:10:11 +12:00
toyomoyo
3ace5ee456 merged fix for MDL-10856, mp3 filter does not work for uploaded html files 2007-08-17 04:57:52 +00:00
moodler
759bc3c89a Added support for flv 2007-07-19 05:43:33 +00:00
sam_marshall
6ae5e482e2 MDL-10083 CSV mimetype/icon support 2007-06-11 15:36:08 +00:00
ikawhero
08297dcb3c New mimetype for Inspiration application.
Icon and code patch from Julian Ridden.
2007-05-03 07:15:30 +00:00
skodak
1659a9982d MDL-9403 Add "application/xhtml+xml" mime type for *.xhtml resource files 2007-04-17 22:14:15 +00:00
skodak
c57d88740f MDL-8802 fixed byteserving broken by adobe anti xss patch; merged from MOODLE_18_STABLE 2007-04-04 19:45:17 +00:00
skodak
2c793dc775 MDL-9017 add mime type for ico files; merged from MOODLE_18_STABLE 2007-03-23 13:06:51 +00:00
skodak
e10bc44045 MDL-7586 added opendocument mimetype icons, created by Pete Harlow, see http://opendocumentfellowship.org/icon/examples 2007-01-20 15:00:17 +00:00
skodak
60f9e36ee8 MDL-8223 - last global $course hacks removed 2007-01-19 10:29:03 +00:00
skodak
ee7f231d08 revised adobe XSS protection SC#346 2007-01-06 15:22:23 +00:00
Martin Langhoff
f3f7610c90 cvsimport fixups -- cvshead had strayed from upstream 2007-01-04 13:15:04 +13:00
skodak
b8806cccdf Adobe Acrobat JavaScript Execution Bug SC#346 2007-01-03 23:35:03 +00:00
skodak
8ee88311d1 MDL-8018 testing and bugfixing of curl emulation library + added download_file_content() into filelib.php 2007-01-02 22:44:59 +00:00
skodak
2098f6ddbb MDL-8029 obsoleted file_get_contents() emulation removed from filelib 2006-12-30 21:14:24 +00:00
skodak
70ee284143 MDL-8007 mimetype support for htc files, see http://support.microsoft.com/kb/306231 2006-12-29 20:57:48 +00:00
skodak
810944af7f we are going 100% unicode now - removed use of $CFG->unicodedb and current_charset(); MDL-7439 - part 2, only hotpot and wiki left 2006-11-11 17:23:20 +00:00
skodak
4db69ffb82 Scalable Vector Graphics (SVG) files in Moodle are not correctly displayed in many Browsers MDL-6878, patch submitted by Geoffrey Rowland, thanks! 2006-10-08 08:13:41 +00:00
skodak
a17c57b5e3 Partially reversed patch for http://tracker.moodle.org/browse/MDL-5136, caching of filtered uploaded html files is disabled now MDL-5136 , Eloy is changing the column type in cache_text back to TEXT. 2006-09-22 18:08:53 +00:00
skodak
ba4e0b059d fixed warning caused by missing fields in $course; tweaked mime info for firefox when forcing download - it should use default system mime associations which should be safe in case of firefox. 2006-09-20 17:51:59 +00:00
sam_marshall
ba75ad9400 Minor changes to send_file():
* Wrote phpdoc comment that documents all parameters
* Added $mimetype param (default empty) that can be used if MIME type is already known and doesn't need guessing from filename
2006-07-05 11:10:37 +00:00
skodak
aba588a726 Bug #5802 - Incorrect length in http partial content (206) packets.; merged from MOODLE_16_STABLE 2006-06-30 07:23:08 +00:00
sam_marshall
c0381e22da Added way to get a textual description of a file (e.g. 'Word document') based on its MIME type. 2006-03-09 13:14:33 +00:00
sam_marshall
3ce73b147f filelib - Added support for looking up icons via MIME type as well as via extension 2006-03-09 12:07:11 +00:00
tjhunt
34763a795a Change fulldelete(), so it does not give an error if the thing you try to delete does not exist. 2006-03-01 12:13:09 +00:00
thepurpleblob
b9709b76d9 Corrected oversight with uploaded file filters change
See http://moodle.org/mod/forum/discuss.php?d=40177
2006-02-21 12:54:24 +00:00
thepurpleblob
2f9bd37cc3 Added proper check for $CFG->filteruploadedfiles, so that text/plain files
are not converted to text/html if this is 'off'
See discussion: http://moodle.org/mod/forum/discuss.php?d=40177
2006-02-21 10:43:23 +00:00
skodak
68913aecd0 ignore set_time_limit() errors 2006-01-16 22:55:17 +00:00
skodak
8914cb828c ignore ini_set() result 2006-01-16 22:23:52 +00:00
skodak
4c8c65ecd5 added byteserving, fixed cookieless mode, changed timeout handling, minor code cleanup 2006-01-16 22:21:41 +00:00
martinlanghoff
2037106308 Merged from MOODLE_15_STABLE - readfile_chunked() - do not timeout on slow (dial up) clients, and flush buffers explicitly to avoid hogging memory when ob is on 2006-01-16 04:02:28 +00:00
moodler
6aaa17c7cc Merging language-pack-related updates from Eloy's MOODLE_16_UTF8 branch.
Do not use that branch any more!!
2006-01-04 08:23:42 +00:00