Changeset 888832
- Timestamp:
- 04/07/2014 03:50:45 PM (12 years ago)
- Location:
- pwebonedrive/trunk
- Files:
-
- 4 edited
-
js/onedrive.js (modified) (2 diffs)
-
liveconnect.php (modified) (8 diffs)
-
pwebonedrive.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pwebonedrive/trunk/js/onedrive.js
r866880 r888832 1 1 /** 2 * @version 1.0. 02 * @version 1.0.3 3 3 * @package OneDrive 4 4 * @copyright © 2014 Perfect Web sp. z o.o., All rights reserved. http://www.perfect-web.co … … 250 250 { 251 251 var exdate = new Date(); 252 document.cookie = "wl_auth=;domain= ."+document.location.host+";path=/;expires="+exdate.toUTCString()-1;252 document.cookie = "wl_auth=;domain="+document.location.host+";path=/;expires="+exdate.toUTCString()-1; 253 253 }, 254 254 -
pwebonedrive/trunk/liveconnect.php
r884981 r888832 1 1 <?php 2 2 /** 3 * @version 1.0. 13 * @version 1.0.3 4 4 * @package OneDrive 5 5 * @copyright © 2014 Perfect Web sp. z o.o., All rights reserved. http://www.perfect-web.co … … 37 37 'storetoken' => true, 38 38 'usecookie' => true, 39 'cookiename' => 'wl_auth' 39 'cookiename' => 'wl_auth', 40 'timeout' => 25, 41 'sslverify' => false 40 42 ); 41 43 … … 119 121 $data['client_secret'] = $this->getOption('clientsecret'); 120 122 121 $response = $this->http->post($this->getOption('tokenurl'), array('body' => $data ));123 $response = $this->http->post($this->getOption('tokenurl'), array('body' => $data, 'timeout' => $this->getOption('timeout'), 'sslverify' => $this->getOption('sslverify'))); 122 124 123 125 if (is_wp_error($response)) … … 392 394 if (!headers_sent()) 393 395 { 394 setrawcookie($this->getOption('cookiename'), $this->buildQueryString($cookieValues), 0, '/', $_SERVER[' SERVER_NAME']);396 setrawcookie($this->getOption('cookiename'), $this->buildQueryString($cookieValues), 0, '/', $_SERVER['HTTP_HOST']); 395 397 } 396 398 } … … 566 568 $data['client_secret'] = $this->getOption('clientsecret'); 567 569 568 $response = $this->http->post($this->getOption('tokenurl'), array('body' => $data ));570 $response = $this->http->post($this->getOption('tokenurl'), array('body' => $data, 'timeout' => $this->getOption('timeout'), 'sslverify' => $this->getOption('sslverify'))); 569 571 570 572 if (is_wp_error($response)) … … 607 609 * @return WP_Error|array The response or WP_Error on failure. 608 610 */ 609 public function query($url = null, $data = null, $headers = array(), $method = 'get' )611 public function query($url = null, $data = null, $headers = array(), $method = 'get', $timeout = null) 610 612 { 611 613 $this->log(__METHOD__.'. URL: '.$url.' '.print_r($data, true)); … … 643 645 $args = array( 644 646 'method' => $method, 645 'headers' => $headers 647 'headers' => $headers, 648 'timeout' => $timeout > 0 ? $timeout : $this->getOption('timeout'), 649 'sslverify' => $this->getOption('sslverify') 646 650 ); 647 651 … … 709 713 $this->log(__METHOD__.'. URL: '.$url); 710 714 711 $response = $this->http->get($url, array('headers' => $headers ));715 $response = $this->http->get($url, array('headers' => $headers, 'timeout' => $this->getOption('timeout'), 'sslverify' => $this->getOption('sslverify'))); 712 716 713 717 if (is_wp_error($response)) -
pwebonedrive/trunk/pwebonedrive.php
r886240 r888832 4 4 * Plugin URI: http://www.perfect-web.co/wordpress/microsoft-onedrive-gallery-file 5 5 * Description: Share easily your photos and files stored on Microsoft OneDrive. You can display a gallery with your photos or a link to a file for download. 6 * Version: 1.0. 26 * Version: 1.0.3 7 7 * Author: Piotr Moćko 8 8 * Author URI: http://www.perfect-web.co -
pwebonedrive/trunk/readme.txt
r886241 r888832 5 5 Requires at least: 2.8.0 6 6 Tested up to: 3.8.1 7 Stable tag: 1.0. 27 Stable tag: 1.0.3 8 8 License: GPLv3 9 9 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 98 98 == Changelog == 99 99 100 = 1.0.0 = 101 * First release 100 = 1.0.3 / 07-04-2014 = 101 * Fixed cookie domain name 102 * Fixed request timeout and SSL verify 102 103 103 = 1.0.1 = 104 = 1.0.2 / 02-04-2014 = 105 * Inform about new option on Live Connect app management 106 107 = 1.0.1 / 31-03-2014 = 104 108 * Backward compatibility with PHP 5.2 105 109 106 = 1.0. 2=107 * Inform about new option on Live Connect app management110 = 1.0.0 / 28-02-2014 = 111 * First release 108 112 109 113 == Upgrade Notice ==
Note: See TracChangeset
for help on using the changeset viewer.