Matteo Scaramuccia
ed0a1cd708
MDL-57789 files: Use immutable Cache-Control extension.
2017-02-25 23:42:35 +01:00
Matteo Scaramuccia
f2de8226a8
MDL-57789 files: Used if-then instead of ternary operators
2017-02-25 23:36:07 +01:00
Matteo Scaramuccia
7338ce0182
MDL-57789 files: Let send_stored_file() rely on send_file().
2017-02-25 23:36:04 +01:00
Davo Smith
fda954f470
MDL-47198 filelib: fix curl handling headers with no value
2016-12-16 13:19:48 +00:00
Jake Dallimore
605bab84ce
MDL-48498 core_files: Add security helper to curl class
...
Allow injection of security_helper objects into curl, but default
to a core helper tied to http security settings values.
2016-11-08 15:11:15 +08:00
Frederic Massart
19efee14e2
MDL-55445 files: Helper functions related to serving and caching
...
The function send_content_uncached() is meant to be used when serving
content which should not be cached by browsers/proxies. You will
use this in development mode, or when the request is malformed
but you need to return some fallback content which shouldn't be stored
under the URL it was requested from.
The function file_safe_save_content() should only be used for content
not stored in the file API. Good candidates for this are resource
which fit well in the localcache. The function tries to write the
content in the most atomic way as possible to prevent incomplete
writes or concurrent writes.
2016-08-17 10:26:10 +08:00
Frederic Massart
0eb97bfa13
MDL-55445 files: Support for cacheability in send_file()
2016-08-15 10:54:29 +08:00
Marina Glancy
b195a5b331
MDL-33741 file_info: check capability when serving file in coursecat description
2016-08-01 09:12:18 +08:00
Adrian Greeve
f6f0ba2d45
MDL-55126 files: Deprecate get_records_csv and put_records_csv.
...
Initial deprecation of the above functions.
2016-07-13 14:22:46 +08:00
Andrew Nicols
71f81adce9
Merge branch 'MDL-54869-master' of git://github.com/jleyva/moodle
2016-07-07 10:30:17 +08:00
Andrew Nicols
ff3778bf97
MDL-29738 file: Remove unused stylesheet functionality
...
This functionality was commented out in
78946b9bdb1299a21f00b88d81c73ad8700c951e for MDL-20204 back in 2009.
Since then it has been wasting cycles performing utterly pointless
preg_match and preg_replace calls.
The decision has been made to deprecate it in stables, and remove it in
3.2.
2016-07-05 19:31:22 +08:00
Juan Leyva
460897052e
MDL-54869 files: Create new required functions
...
This was a complex change requiring three new functions:
file_merge_files_from_draft_area_into_filearea - To just add files from a draft area into a real one (just adding or updating, not deleting)
file_merge_draft_area_into_draft_area - To merge files from two draft areas, used by the latest for creating a draft area with all the original files plus the new ones.
file_overwrite_existing_draftfile - Required to update existing files not losing metadata or references.
The whole process is the following:
User uploads a file (upload.php)
Client gets a new draftid A containing the file only (return of upload.php)
Client requests to merge that draftid in the user's private files (core_user_add_user_private_files)
Server prepares a new UNUSED draftid B from existing area
Server merges A into B
Server saves the draft B into the final area
2016-07-05 09:01:34 +01:00
Juan Leyva
d089e4984d
MDL-54869 files: Fix file_save_draft_area_files documentation
2016-07-05 08:40:06 +01:00
Matteo Scaramuccia
bc219382b7
MDL-53837 assign: Fix executable check for 'unoconv.py' on Windows.
2016-04-17 22:35:13 +02:00
Juan Leyva
296ab1e253
MDL-53175 file: Allow file_rewrite_pluginfile_urls to reverse
2016-03-30 09:37:32 +01:00
Ben Kelada
288c8cb7f1
MDL-52261 filelib: Do login check for files in blocks
2015-12-04 11:00:05 +11:00
Jun Pataleta
0c4c3b9aed
MDL-44828 filelib: Fix open error for force-downloaded files in mobile
...
Allow guessing of file's MIME type by default. Fallback to
application/octet-stream if MIME type cannot be determined.
2015-08-14 09:54:20 +08:00
Eloy Lafuente (stronk7)
9a1adda585
MDL-49497 curl: keep api private and test it using reflection.
...
While strictly we should not be testing private APIs, in order
to get this backported to stables without changing visibility
we use reflection to access to such private properties and methods.
Also added one exttest to verify user agent is properly sent.
Finally, fix some wrong whitespace and changed the helper class name
to better alternative.
2015-06-23 17:20:20 +02:00
Dave Cooper
300fcae31d
MDL-49497 curl: Allow configurable User-Agent.
...
Thanks to Kartik Yadav for assistance with this patch.
2015-06-23 15:59:59 +02:00
Marina Glancy
6218473334
MDL-28954 cohorts: support files in cohort descriptions
2015-06-08 09:18:45 +08:00
sam marshall
b3d7eb6ed4
MDL-48946 Files: New custom description format_string call
...
The format_string call used when getting file type descriptions
does not specify a context. The page context is not always
available at this point, so for consistency it should specify
the system context.
2015-01-22 13:27:50 +00:00
Dan Poltawski
c67c00a6fe
Merge branch 'MDL-42616-master' of https://github.com/sammarshallou/moodle
2014-12-22 12:13:31 +00:00
sam marshall
91fed57a4e
MDL-42616 filelib: Use config value for custom MIME types (1/2)
...
Uses a new optional config variable to define custom MIME types
in JSON format. Includes new API for accessing and modifying
this data.
2014-12-19 14:48:59 +00:00
Frederic Massart
38a73bf4ae
MDL-48495 curl: Limit usage of curl to HTTP and HTTPS protocols
2014-12-16 10:08:33 +00:00
Dan Poltawski
1f182f95e7
Merge branch 'MDL9443_Filter_XHTML_files.2014-11-19' of git://github.com/Dave-B/moodle
2014-11-24 17:26:30 +00:00
David Balch
112aed6035
MDL-9443 core_files: Also filter .xhtml resources.
...
Change the filters to treat .xhtml files the same as .html,
so they are filtered by both "All files" and "HTML files only".
2014-11-19 14:14:50 +00:00
Matteo Scaramuccia
bb8ed60a3c
MDL-48023 Files API: Theme files must be cache-able by shared proxies.
...
The profile image AKA user icon will be cache-able by shared proxies too,
under its specific accessibility constraints/conditions.
2014-11-16 09:53:27 +01:00
Petr Skoda
7ee4642bcb
MDL-48013 calendar: force download of user files
2014-11-04 01:40:52 +01:00
Juan Leyva
3ca3d259e5
MDL-47545 web services: Allow cross origin requests for file downloads
2014-10-24 17:10:44 +02:00
Matteo Scaramuccia
8045696b37
MDL-36669 Filters: Remove the last ref to the UFO library.
2014-10-20 23:17:50 +02:00
Tony Butler
1e31f11852
MDL-28484 core_lib: Add function for https detection
...
Signed-off-by: Tony Butler <tonyjbutler@gmail.com>
2014-10-03 13:02:29 +01:00
Dan Marsden
9528f643d1
MDL-47404 filelib: Prevent flash from treating files as uploads
...
added to send_stored_file as well.
2014-10-01 15:05:56 +13:00
Dan Marsden
7f68cc6541
MDL-47404 filelib: Prevent flash from treating files as uploads
...
Flash treats files as uploads if filename is passed in content-disposition
this causes security to be enforced that causes issues with SCORM packages
2014-09-25 13:21:47 +12:00
Matteo Scaramuccia
cfa5bd1f3f
MDL-46985 Added 7-Zip and RAR MIME types.
2014-08-31 22:33:28 +02:00
Simey Lameze
feff774adb
MDL-43063 core: fix phpdoc comment codechecker issue.
2014-07-21 10:08:41 +08:00
James McLean
855d8a2c49
MDL-45418 Files: Adding publisher docs to Filetypes
2014-06-10 19:09:27 +02:00
Tim Hunt
5bcfd504df
MDL-45618 Fix @since PHPdoc tags.
2014-05-19 17:03:04 +01:00
Krister Viirsaar
ecdb94d3e0
MDL-43570 filetypes: Added new filetypes - ddoc, bdoc, cdoc
2014-04-30 13:04:34 +03:00
Tim Lock
1349800dd7
MDL-45012: Enable support for wma files within tinymce Moodle Media plugin
2014-04-14 08:31:17 +09:30
Henning Bostelmann
c746c60803
MDL-44502 filelib: Add mimetype for Maple worksheets
2014-03-14 11:39:07 +00:00
Dan Poltawski
4e5fb5bec1
Merge branch 'm27_MDL-40379_Prevent_Some_Mobile_Network_Providers_From_Modifying_Content' of https://github.com/scara/moodle
2014-01-07 12:42:33 +08:00
Damyon Wiese
e011f229a8
Merge branch 'w01_MDL-43402_m27_zlib' of https://github.com/skodak/moodle
2014-01-07 12:29:45 +08:00
Petr Škoda
90627d9d59
MDL-43527 eliminate last references to safe_mode
...
Safe mode is not availabel in PHP 5.4 any more...
2014-01-02 09:23:15 +08:00
Matteo Scaramuccia
c3a3f54053
MDL-40379 Files Prevent mobile network providers from modifying content.
2013-12-28 13:56:19 +01:00
Petr Škoda
b19d75a264
MDL-43402 let's try to remove @ silencing from gzip related code
...
If anything goes wrong on multiple production sites we can just
revert this commit, that is why it is separete from the rest
of zlib stuff.
2013-12-27 11:06:18 +08:00
Sam Hemelryk
a59a423926
Merge branch 'MDL-42084-master' of git://github.com/sammarshallou/moodle
2013-12-03 11:12:34 +13:00
Frederic Massart
102230b23c
MDL-42951 curl: Always keep the last headers of a request
2013-11-28 12:00:42 +08:00
Frederic Massart
ba72e295c2
MDL-42985 curl: Correctly apply rule proxybypass
2013-11-21 09:56:54 +08:00
sam marshall
3ef7279f26
MDL-42084 Core: Change set_time_limit to core_php_time_limit::raise everywhere
...
Exceptions (places where set_time_limit is still left) are:
Third-party libraries:
ADODB
PHPMailer
Moodle core:
PHPUnit - not relevant (CLI mode)
2013-11-06 16:40:01 +00:00
Petr Škoda
0c431257e9
MDL-42387 standardise file lifetime handling
2013-11-01 10:42:18 +01:00