summaryrefslogtreecommitdiff
path: root/lib/exe/fetch.php
Commit message (Collapse)AuthorAge
* fix misspelled variable name,Christopher Smith2014-03-05
|
* Re-order parameters to not break other callersGerry Weißbach2014-01-27
|
* Use original filename for Content-DispositionGerry Weißbach2014-01-27
| | | In most cases this change will have no effect, but noes the response will use the filename that was originally requested. The downloaded filename can be modified to something different as well. E.g. the siteexport plugin will make use of it.
* media image can be resized by height (without width)lisps2013-11-27
|
* Add check for token when resizing and caching external imagesKlap-in2013-05-21
|
* refactor fetch to support unittestingChristopher Smith2013-03-22
|
* add a token to fetch urls requiring image resize/crop to prevent external ↵Christopher Smith2013-03-22
| | | | DDOS via fetch
* there's no pragma: privateAndreas Gohr2013-03-03
|
* max-age not allowed with no-cacheAndreas Gohr2013-03-03
|
* adjusted cache=0 headers againAndreas Gohr2013-03-03
|
* fixed passed cache parameterAndreas Gohr2013-03-03
|
* handle public vs. private ressource in sendFile()Andreas Gohr2013-03-03
|
* alternative fix for FS#2734Andreas Gohr2013-03-01
|
* introduced http_status() for sending HTTP status code FS#1698Andreas Gohr2013-02-16
| | | | | | | It seems, some servers require a special Status: header for sending the HTTP status code from PHP (F)CGI to the server. This patch introduces a new function (adopted from CodeIgniter) for simplifying the status handling.
* run main code only for non-tests in lib/exe/fetch.phpAndreas Gohr2013-02-16
|
* reformatted lib/exe/fetch.phpAndreas Gohr2013-02-16
|
* correctly check hash parameter in media dispatcher FS#2648Andreas Gohr2012-10-23
|
* Replacing $_REQUEST variables with $INPUT wrapper, fetch.phpHakan Sandell2012-09-08
|
* replaced use of basename() with utf8_basename() FS#2015Andreas Gohr2012-07-28
|
* Input wrapper for exe scriptsTom N Harris2012-06-28
|
* fetch.php with rev parameterKate Arzamastseva2011-06-04
|
* Remove enc=utf-8 in VIM modeline as it is not allowed in VIM 7.3Michael Hamann2010-11-29
| | | | | | As of VIM 7.3 it is no longer possible to specify the encoding in the modeline. This gives an error message whenever such a file is opened, thus this commit removes the enc setting from the modeline.
* Merge branch 'requireall'Andreas Gohr2010-03-12
|\ | | | | | | | | Conflicts: inc/fulltext.php
| * removed require's in lib/exe/*Andreas Gohr2010-02-01
| |
* | Send 403 instead of 401 in fetch.php FS#1904Andreas Gohr2010-02-24
| |
* | Changed FETCH_MEDIA_4XERROR to FETCH_MEDIA_STATUSAndreas Gohr2010-02-23
| |
* | Added FETCH_MEDIA_4XERROR eventGerry Weißbach2010-02-23
|/
* Whitespace cleanup FS#1709furun2009-10-16
| | | | | | Ignore-this: 27ea52110bce929b2c61ed8faba67cfc darcs-hash:20091016205526-c0bf4-35eba4e65d37980a667ba982f7f1ea5b7b07f01c.gz
* require a hash in fetch.php for external URLs FS#1769Andreas Gohr2009-10-06
| | | | | | | | | | Ignore-this: a66fc8874fb8e04b1258f2e71e35ed90 To avoid fetch.php being abused as anonymous forwarder or even proxy, now a hash is needed for external ressources. This hash is automatically added by the ml() function. darcs-hash:20091006182001-7ad00-adf5f6275b0d7f76543f76d6196f1531b8c09e1c.gz
* Use all available icons for file links (FS#1759)Tom N Harris2009-09-26
| | | | | | | | | All PNG and GIF images in the lib/images/fileicons directory will be used for media file links. The conf/mime.conf file continues to restrict which file types may be uploaded. File types not in the configuration list are download-only. darcs-hash:20090925231746-6942e-299a52772f67e265a8702bda3686f495e4337a8f.gz
* Support for multirange requests for media FS#1630Andreas Gohr2009-03-13
| | | | | | | | | | | Ignore-this: 50de569608231b910a62327d2f3af1de This patch moves all HTTP sending related functions to inc/httputils.php Handling of range requests was rewritten completely to support mutirange requests. This should fix problems with Adobe Reader but needs testing. darcs-hash:20090313190247-7ad00-e6ec1f81acb9f7ac651357dd034c2689aea6868d.gz
* add http_sendfile() functionChris Smith2009-01-18
| | | | | | - update fetch.php to use the new function darcs-hash:20090118183600-f07c6-65c818bba58fab8856c9f353ff4953ead9b5221e.gz
* Make content-disposition configurable in mime.conf FS#1541Andreas Gohr2008-12-02
| | | | | | | | | | | | | With this patch it is possible to define if a file should be served as download or be displayed inside the browser (if supported) by configuring it in conf/mime.conf Mimetypes that should be served with a "Content-Disposition: attachment" header need to be prefixed with a exclamation mark. All others will be served inline. This will also fix a Problem with Flash 10. darcs-hash:20081202210322-7ad00-6e7ef30aff9322cd135311be77809187da121f3b.gz
* moved crop/resize functions out of fetch.php for reusabilityMichael Klier2008-10-26
| | | | darcs-hash:20081026135833-23886-a9c8e910571c6e7a4e1603a2ebd365b3ed37108a.gz
* fetch.php file not existing and devision by zerogweissbach2008-08-05
| | | | | | | | | | | If the cache file does not exist after it should have been generated via an action plugin or via resizing filemtime fails with a file not found. This has to be fixed by @filemtime. Another fix is the check for the $INFO before resizing an image in get_resized. get_croped has already been fixed darcs-hash:20080805132309-f4337-41698af01cf1f3632bd68e1e10724bdffc7c58a3.gz
* Avoid div by zero in get_cropped() FS#1453Gerry Weissbach2008-07-27
| | | | darcs-hash:20080727180206-0d72e-28f6206ebe4f6c36f835c50f46d9cbe220ab6177.gz
* MEDIA_SENDFILE event addedAndreas Gohr2008-06-23
| | | | | | | This new event wraps around the sendFile function in lib/exe/fetch.php and allows intercepting mediafile downloads. darcs-hash:20080623172020-7ad00-c71293c9ebbbce7559e4b34e878d364a555ebfa2.gz
* always crop when height is givenAndreas Gohr2008-05-16
| | | | darcs-hash:20080516131348-7ad00-499fcf8660323913e0cff1fbf85d9ffb56ea113b.gz
* prefer the upper part of portrait photos when croppingAndreas Gohr2008-05-16
| | | | darcs-hash:20080516122354-7ad00-9da7f5011631ad40855d7becd1258a415f2e1f48.gz
* removed debugging codeAndreas Gohr2008-05-16
| | | | darcs-hash:20080516114051-7ad00-ea7c2350c4e3bfda05686c1c6de3027c649cb0ab.gz
* image cropping support in fetch.php - no syntax yetAndreas Gohr2008-05-16
| | | | darcs-hash:20080516113856-7ad00-fb8dc6c7be6b0f9db6a4e6f11c5f0bf5bc66dd9c.gz
* Set cache permissions after image resize FS#1359Otto Vainio2008-03-25
| | | | darcs-hash:20080325181825-8d1e6-9f3156da7769530634f29859226d0cb0652fbb99.gz
* Propritary Nginx X-Accel-Redirect headerpierre.pracht2008-03-15
| | | | | | | | | | Example nginx configuration : location /var/www/dokuwiki0/ { internal; alias /var/www/dokuwiki/dokuwiki0/; } darcs-hash:20080315155631-b0461-68c08d68660e554c62a748c1954699791decd000.gz
* Check memory settings on ?doAndreas Gohr2008-02-23
| | | | | | This should help with diagnosing memory related problems darcs-hash:20080223180701-7ad00-1308829c3d7432b1d0c23c3f1acc8228c0a41e1e.gz
* fix for resetting timelimit in fetch.php FS#1243Andreas Gohr2008-02-15
| | | | darcs-hash:20080215152132-7ad00-57dfd552c1fa5bc4421f64abf5552f4bb377040c.gz
* transparent_gifs_wienecke2007-12-21
| | | | darcs-hash:20071221181419-3d7ce-f05705a0357412a87e7984a041ac5812eea83048.gz
* X-Sendfile support for fetch.phpAndreas Gohr2007-10-08
| | | | | | | | | | | | This patch enables the use of the X-Sendfile extension offered by certain webservers to deliver static files after running a dynamic script. This combines the flexibility of a PHP file to check for authorization, caching and resizing with the low memory footprint and high performance of static file delivery of the webserver. See http://blog.lighttpd.net/articles/2006/07/02/x-sendfile for details darcs-hash:20071008185019-7ad00-1e6d4768fb60d58955e4253c7786eaf8cf13d0bb.gz
* don't use fullpath() before initializedAndreas Gohr2007-09-30
| | | | darcs-hash:20070930201133-7ad00-a35a6c40f880116009efd9e50cb002bd75733369.gz
* don't use realpath() anymore (FS#1261 and others)Andreas Gohr2007-09-30
| | | | | | | | | | | The use of realpath() to clean up relative file names caused some trouble in certain setups relying on symlinks or having restricitve file structure setups. This patch replaces all realpath() calls with a PHP only replacement which should solve those problems. darcs-hash:20070930184250-7ad00-512ff04c95f57fc9eaf104f80372237a3c94286f.gz
* better check for images in fetch.phpAndreas Gohr2006-10-18
| | | | | | | | This patch is an enhancement to yesterday's changes. The ability to download external content could be used for XSS attacks, when faking the sent MIME type. This patch adds a check on the received data for valid images. darcs-hash:20061018124942-7ad00-4e8bca7d3877e6a10c348b5d45499cf8adf8b087.gz