Commit Graph

90 Commits

Author SHA1 Message Date
Mike Jolley 04dcc6a3f2 Tweak download_product() method 2014-10-27 12:25:05 +00:00
Mike Jolley 8a310f96d8 Split download_headers() method 2014-10-27 11:01:27 +00:00
Mike Jolley abd81e6685 Split check_current_user_can_download() method 2014-10-27 11:01:27 +00:00
Mike Jolley cac813c1de Attempt to improve check_current_user_can_download() 2014-10-24 23:08:50 +01:00
Mike Jolley 63c923394c Additional download handler tweaks 2014-10-24 22:50:23 +01:00
Mike Jolley c3023d4c8c WC_Download_Handler - Split download and download_product into multiple methods 2014-10-24 18:21:21 +01:00
Mike Jolley 3aaa397361 WC_Download_Handler - readfile_chunked refactor 2014-10-24 18:21:21 +01:00
Mike Jolley 973112d132 When user tries to download a file and isn't logged in, send them to the account page with a notice.
Closes #6397
2014-10-02 15:21:39 +01:00
Mike Jolley c4ef86d44e scrutinizer patches 2014-09-08 00:37:55 +01:00
Patrick Rauland e202926f73 remove check to make sure order is complete before downloading. fixes #6166 2014-09-04 10:31:38 -06:00
Barry Kooij 94365791af Changed all use of get_product to wc_get_product 2014-08-19 12:09:29 +02:00
Barry Kooij 6655188f0b Changed use of get_order with wc_get_order 2014-08-15 14:29:21 +02:00
Coen Jacobs 93bd5a04df Correct order status for checking downloads 2014-07-07 13:30:07 +02:00
Coen Jacobs 86a4add087 Merge remote-tracking branch 'upstream/master' into order-factory-refactor
Conflicts:
	includes/class-wc-order.php
2014-07-03 13:38:55 +02:00
toddlahman 7d78888f12 sync fork with master 2014-06-26 03:30:09 -07:00
Coen Jacobs 89ea6c46ab Replace new WC_Order calls with get_order 2014-06-13 15:24:51 +02:00
Kai Armstrong 1274ac3303 Reading the wp_die docs was apparently a giant mental challenge... fixed the fix for #5656 2014-06-11 15:24:27 -05:00
Kai Armstrong 4812248320 Sends proper HTTP Status Codes on die 2014-06-11 14:55:15 -05:00
Coen Jacobs 3ad8935b20 Removed ununsed global variables in local scopes 2014-06-08 22:33:11 +02:00
Mike Jolley e198ee517a Made stateless classes static to allow unhooking of hooks
Closes #5151
2014-05-28 14:52:50 +01:00
toddlahman 969fd22849 Confirm buffer is not empty before erasing
Confirm file_exists before opening. For PHP 5.3 or earlier, check if
safe_mode is active to avoid errors.
2014-05-25 14:10:23 -07:00
Mike Jolley e06906f81d cleaned up download handler, use network_site_url instead of network_admin_url for multisite 2014-04-07 15:09:11 +01:00
Mike Jolley cf50b4977d Filter the filename Closes #5074 2014-03-14 10:04:41 +00:00
Mike Jolley 624df4ea14 Suppress errors in download handler Closes #5042 2014-03-05 09:30:12 +00:00
Gerhard ab5d86097b Coding standards, mostly braces 2014-02-26 13:54:16 +02:00
toddlahman 2725527d4a Removed urldecode from $_GET and $_REQUEST
The superglobals $_GET and $_REQUEST are already decoded. Using
urldecode() on an element in $_GET or $_REQUEST could have unexpected
and dangerous results.

See Notes:

http://us1.php.net/manual/en/function.urldecode.php
2014-01-26 01:19:17 -08:00
toddlahman 75c76ff7b9 improved ob_end_clean for download handler 2014-01-02 18:35:17 -08:00
toddlahman 32af9d4440 Revert back to ob_end_clean to fix errors
ob_clean does not turn off output buffering as ob_end_clean does. On
some hosts ob_clean results in an error like: transfer closed with 3
bytes remaining to read. ob_end_clean fixes this.
2013-12-19 01:14:39 -08:00
James Koster dbf1b15001 replace a few missed →'s. closes #4350 2013-12-12 13:42:29 +00:00
Mike Jolley 553b273fc6 Merge pull request #4214 from toddlahman/master
escape download handler URLs
2013-12-03 07:32:47 -08:00
Gregory K cdbe5950f0 PhpDocs and TODO comments 2013-11-28 11:49:30 -05:00
toddlahman 52fd9a0502 esc_url applied to readfile home_url()
This should fix it.

Thank you Mike for the info on esc_html.
2013-11-27 15:51:56 -08:00
toddlahman c6fd37f2df esc_url_raw to readfile home_url() 2013-11-26 13:55:10 -08:00
toddlahman 6bed7bff94 escape download handler URLs 2013-11-26 07:27:46 -08:00
Coen Jacobs 47ae00be28 Page functions woocommerce to wc refactor 2013-11-25 15:07:22 +01:00
Mike Jolley f6786ef6bf Convert back to forward slashes in getcwd closes #4112.
@tivnet, can you confirm? I don't have windows.
2013-11-18 11:20:39 +00:00
Gregory K eba9edb30b Incorrect "Robots: none" tag?
https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
2013-11-14 07:40:33 -05:00
Illimar Tambek 3c22c486f8 Add download_file capability and security check 2013-09-06 19:38:06 +03:00
Mike Jolley 131f692855 Tweak download handler Closes #3394. 2013-08-13 14:53:55 +01:00
Mike Jolley 57157db9bf Function refactoring. 2013-08-09 17:11:21 +01:00