30 Commits

Author SHA1 Message Date
skodak
69faecceaf new parameter forcedownload; merged from MOODLE_15_STABLE 2005-07-12 08:05:42 +00:00
martinlanghoff
2ea55bc050 Merged from MOODLE_14_STABLE - Unlock session during fileserving. 2005-05-17 01:00:48 +00:00
moodler
4d68dff4b7 Call new lib/filelib.php 2005-03-07 11:34:16 +00:00
skodak
48283ff638 slashargument test fix 2005-02-26 20:43:30 +00:00
skodak
fd05dffed6 SC#98 protection of uploaded files in resources, please review and test 2005-02-22 23:36:20 +00:00
skodak
e7f927a0fc new handling of uploaded files, please TEST, TEST, TEST 2004-12-14 18:57:51 +00:00
dhawes
822a106319 Added a file level phpdoc docblock tag. Also converted double quote strings to single quote literals. 2004-09-29 18:19:39 +00:00
moodler
76112421d8 Merged from stable 2004-09-07 14:13:19 +00:00
moodler
de482722f6 Added a 404 header but it seems not to work ... not sure why not. 2004-08-18 05:59:14 +00:00
moodler
5e98103bd0 Remove possible path disclosure and add a translatable error message 2004-08-18 05:47:55 +00:00
moodler
ee88d30b4c Don't put HTML and text files through clean_text. 2004-08-10 10:44:29 +00:00
moodler
6093cbfcd8 FIxed link after file not found error 2004-08-04 09:45:45 +00:00
moodler
f57cd38b82 Use forcelogin on site files if it's defined bug 1486 2004-05-28 01:17:37 +00:00
moodler
d45bd055d7 Parameters fix for files.
This allows

   http://example.com/file.php/1/somefile.swf?a=xxx&b=xxxx

Thanks to Bernard Boucher!
2004-05-01 03:33:10 +00:00
moodler
e5890e7160 file.php now calculates content-length correctly for filtered text and HTML files.
Bug 1240
2004-04-26 03:41:45 +00:00
moodler
66e5f959e9 Can now handle a $CFG->filelifetime to determine cacheability of files 2004-04-01 02:32:04 +00:00
moodler
a4557331c9 Some security fixes with directory listing 2004-03-16 07:20:00 +00:00
moodler
3cf4ab978b Added an option on the filters page to control whether uploaded
files are parsed by filters.    bug 1128
2004-03-11 02:14:15 +00:00
moodler
b7a3d3b24c Filter text files as well 2004-03-09 06:44:27 +00:00
moodler
f05070115c If the uploaded file is HTML, then put it through the filters 2004-03-09 06:28:01 +00:00
moodler
ae67d9cd40 Decode pathinfo in case it has encoded spaces etc in it 2003-11-27 17:23:36 +00:00
moodler
dcde9f020a Displayed time formats are now stored in lang files
(see the new strftime* strings) so they can be customised per language
2003-01-15 10:55:54 +00:00
moodler
9277dbd42d Bummer ... I introduced a new bug in 1.0.8.1 with pathinfo. Fixed. 2003-01-15 05:32:14 +00:00
moodler
6ed3da1da4 Cleaned up file argument processing a bit 2003-01-12 06:53:25 +00:00
moodler
b0e3a92523 Clean sweep through all the important changing all include(), include_once()
and require() to require_once()
2003-01-05 14:19:20 +00:00
martin
55b8ac3107 Better error message when invalid arguments are supplied. 2002-09-05 11:56:20 +00:00
martin
5be2f47cf4 Added Content-disposition header to help some browsers suggest the right
filename when saving pictures and files.
2002-09-02 09:06:43 +00:00
martin
3f8247c2ea Changes to use a new configuration variable: CFG->slasharguments
If true, then display of user pictures or filenames will use the
method of providing arguments as "slash" arguments - this is much
better for caching, proxies, search engines etc.  Unfortunately
it doesn't seem to work on some PHP installations.

If false (the default), then a more compatible method is used
(ie usual way of passing parameters to scripts)
2002-08-26 09:48:00 +00:00
martin
21ddaf605c Several changes related to the front page, so that it now works OK. 2001-11-25 15:48:24 +00:00
martin
f9903ed0a4 Initial revision 2001-11-22 06:23:56 +00:00