Changeset 3162539
- Timestamp:
- 10/04/2024 08:01:39 AM (18 months ago)
- Location:
- embed-sharepoint-onedrive-documents
- Files:
-
- 106 added
- 6 edited
-
tags/2.3.1 (added)
-
tags/2.3.1/API (added)
-
tags/2.3.1/API/class-authorization.php (added)
-
tags/2.3.1/API/class-azure.php (added)
-
tags/2.3.1/API/class-customermosps.php (added)
-
tags/2.3.1/Controller (added)
-
tags/2.3.1/Controller/class-accountsetuphandler.php (added)
-
tags/2.3.1/Controller/class-admincontroller.php (added)
-
tags/2.3.1/Controller/class-appconfig.php (added)
-
tags/2.3.1/Observer (added)
-
tags/2.3.1/Observer/class-adminobserver.php (added)
-
tags/2.3.1/Observer/class-appconfigobserver.php (added)
-
tags/2.3.1/Observer/class-documentobserver.php (added)
-
tags/2.3.1/Observer/class-shortcodesharepoint.php (added)
-
tags/2.3.1/View (added)
-
tags/2.3.1/View/class-accountsetup.php (added)
-
tags/2.3.1/View/class-adminview.php (added)
-
tags/2.3.1/View/class-advancedsettings.php (added)
-
tags/2.3.1/View/class-appconfig.php (added)
-
tags/2.3.1/View/class-demorequest.php (added)
-
tags/2.3.1/View/class-documentssync.php (added)
-
tags/2.3.1/View/class-feedbackform.php (added)
-
tags/2.3.1/View/class-shortcode.php (added)
-
tags/2.3.1/View/class-supportform.php (added)
-
tags/2.3.1/Wrappers (added)
-
tags/2.3.1/Wrappers/class-pluginconstants.php (added)
-
tags/2.3.1/Wrappers/class-wpwrapper.php (added)
-
tags/2.3.1/class-wp-namespace-autoloader.php (added)
-
tags/2.3.1/embed-sharepoint-onedrive-documents.php (added)
-
tags/2.3.1/images (added)
-
tags/2.3.1/images/18_step.png (added)
-
tags/2.3.1/images/19_step.png (added)
-
tags/2.3.1/images/61456.png (added)
-
tags/2.3.1/images/Chasing_arrows.gif (added)
-
tags/2.3.1/images/add.svg (added)
-
tags/2.3.1/images/angry.png (added)
-
tags/2.3.1/images/auto_connection_step1.png (added)
-
tags/2.3.1/images/auto_connection_step2.png (added)
-
tags/2.3.1/images/auto_connection_step3.png (added)
-
tags/2.3.1/images/checked.png (added)
-
tags/2.3.1/images/copy.png (added)
-
tags/2.3.1/images/demo.png (added)
-
tags/2.3.1/images/doc_preview_step.png (added)
-
tags/2.3.1/images/document.png (added)
-
tags/2.3.1/images/down-arrow.svg (added)
-
tags/2.3.1/images/download.svg (added)
-
tags/2.3.1/images/empty_folder_drop.svg (added)
-
tags/2.3.1/images/error.svg (added)
-
tags/2.3.1/images/file.png (added)
-
tags/2.3.1/images/flags16.png (added)
-
tags/2.3.1/images/folder.png (added)
-
tags/2.3.1/images/folder.svg (added)
-
tags/2.3.1/images/folder_main.svg (added)
-
tags/2.3.1/images/folder_mainn.svg (added)
-
tags/2.3.1/images/graph.png (added)
-
tags/2.3.1/images/gutenberg.png (added)
-
tags/2.3.1/images/happy.png (added)
-
tags/2.3.1/images/info.png (added)
-
tags/2.3.1/images/loader.gif (added)
-
tags/2.3.1/images/lock.svg (added)
-
tags/2.3.1/images/login.png (added)
-
tags/2.3.1/images/menu_logo.png (added)
-
tags/2.3.1/images/microsoft-sharepoint.svg (added)
-
tags/2.3.1/images/miniorange.png (added)
-
tags/2.3.1/images/miniorange_logo.png (added)
-
tags/2.3.1/images/msexcel_file.png (added)
-
tags/2.3.1/images/msword_file.png (added)
-
tags/2.3.1/images/normal.png (added)
-
tags/2.3.1/images/onedrive.png (added)
-
tags/2.3.1/images/open-folder.png (added)
-
tags/2.3.1/images/pdf_file.png (added)
-
tags/2.3.1/images/plugin_test_connection.png (added)
-
tags/2.3.1/images/profits.webp (added)
-
tags/2.3.1/images/redirect.svg (added)
-
tags/2.3.1/images/refresh.svg (added)
-
tags/2.3.1/images/sad.png (added)
-
tags/2.3.1/images/scroll-text.svg (added)
-
tags/2.3.1/images/settings.png (added)
-
tags/2.3.1/images/setupguide.svg (added)
-
tags/2.3.1/images/short.png (added)
-
tags/2.3.1/images/shortcode.png (added)
-
tags/2.3.1/images/smile.png (added)
-
tags/2.3.1/images/support-header2.jpg (added)
-
tags/2.3.1/images/tick.svg (added)
-
tags/2.3.1/images/userr.png (added)
-
tags/2.3.1/images/users.svg (added)
-
tags/2.3.1/includes (added)
-
tags/2.3.1/includes/css (added)
-
tags/2.3.1/includes/css/doc-embed.css (added)
-
tags/2.3.1/includes/css/jquery-ui.css (added)
-
tags/2.3.1/includes/css/license.css (added)
-
tags/2.3.1/includes/css/media.css (added)
-
tags/2.3.1/includes/css/mo_sps_settings.css (added)
-
tags/2.3.1/includes/css/phone.css (added)
-
tags/2.3.1/includes/css/select2.min.css (added)
-
tags/2.3.1/includes/js (added)
-
tags/2.3.1/includes/js/ajax.js (added)
-
tags/2.3.1/includes/js/appConfig.js (added)
-
tags/2.3.1/includes/js/gutenburg-block.js (added)
-
tags/2.3.1/includes/js/media.js (added)
-
tags/2.3.1/includes/js/phone.js (added)
-
tags/2.3.1/includes/js/select2.min.js (added)
-
tags/2.3.1/includes/js/settings.js (added)
-
tags/2.3.1/includes/js/settings.min.js (added)
-
tags/2.3.1/readme.txt (added)
-
tags/2.3.1/uninstall.php (added)
-
trunk/API/class-azure.php (modified) (1 diff)
-
trunk/API/class-customermosps.php (modified) (2 diffs)
-
trunk/Wrappers/class-wpwrapper.php (modified) (4 diffs)
-
trunk/embed-sharepoint-onedrive-documents.php (modified) (2 diffs)
-
trunk/includes/js/ajax.js (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
embed-sharepoint-onedrive-documents/trunk/API/class-azure.php
r3157334 r3162539 489 489 ); 490 490 $url = sprintf( $this->endpoints['folder_items_by_path'], $item_path ); 491 $this->manual_escape_url($url); 491 492 $response = $this->handler->mo_sps_get_request( $url, $args ); 492 493 493 494 return $response; 494 495 } 496 497 function manual_escape_url( &$url ) { 498 $characters_to_be_replaced = array( 499 "{" => "%7B", 500 " " => "%20", 501 "[" => "%5B", 502 "}" => "%7D", 503 "]" => "%5D", 504 "`" => "%60", 505 "&" => "%26", 506 "'" => "%27", 507 "^" => "%5E" 508 ); 509 foreach ( $characters_to_be_replaced as $char => $value ) { 510 $url = str_replace( $char, $value, $url ); 511 } 512 } 495 513 } -
embed-sharepoint-onedrive-documents/trunk/API/class-customermosps.php
r3157536 r3162539 3 3 * This miniOrange Embed SharePoint OneDrive Documents allows you to connect with SharePoint and embed documents on WordPress site pages and posts. 4 4 * Copyright (C) 2015 miniOrange 5 * 6 * @package embed-sharepoint-onedrive-documents 7 * @license MIT 5 8 */ 6 9 … … 324 327 'email' => array( 325 328 'customerKey' => $customer_key, 326 'from _email' => $from_email,329 'fromEmail' => $from_email, 327 330 'fromName' => 'Xecurify', 328 331 'toEmail' => 'info@xecurify.com', -
embed-sharepoint-onedrive-documents/trunk/Wrappers/class-wpwrapper.php
r3157334 r3162539 245 245 } 246 246 247 /**248 * Helper function to return the sanitized $_POST array249 *250 * @param array $array $_POST array.251 * @return array252 */253 public static function mo_sps_sanitize_array_map( $array ) {247 /** 248 * Helper function to return the sanitized $_POST array 249 * 250 * @param array $array $_POST array. 251 * @return array 252 */ 253 public static function mo_sps_sanitize_array_map( $array ) { 254 254 $result = array(); 255 255 foreach ( $array as $key => $value ) { … … 257 257 $key = sanitize_text_field( $key ); 258 258 } 259 259 260 if ( ! is_array( $value ) ) { 260 $value = sanitize_text_field( $value ); 261 if ( preg_match( '#^/drives/#', $value ) ) { 262 $value = wp_kses( ( $value ), array() ); 263 } else { 264 $value = sanitize_text_field( $value ); 265 } 261 266 } 267 262 268 $result[ $key ] = $value; 263 269 } … … 310 316 delete_option( 'mo_sps_admin_api_key' ); 311 317 delete_option( 'mo_sps_customer_token' ); 312 313 318 } 314 319 … … 359 364 return esc_url( plugin_dir_url( MO_SPS_PLUGIN_FILE ) . 'images/' . $image_name ); 360 365 } 361 362 366 } -
embed-sharepoint-onedrive-documents/trunk/embed-sharepoint-onedrive-documents.php
r3157536 r3162539 4 4 Plugin URI: https://plugins.miniorange.com/ 5 5 Description: This plugin allows you to sync and embed SharePoint documents, folders, and files in WordPress. You can download and preview SharePoint files directly from WordPress. 6 Version: 2.3. 06 Version: 2.3.1 7 7 Author: miniOrange 8 8 License: MIT … … 25 25 26 26 define( 'MO_SPS_PLUGIN_URL', plugins_url( '', __FILE__ ) ); 27 define( 'MO_SPS_PLUGIN_VERSION', '2. 2.9' );27 define( 'MO_SPS_PLUGIN_VERSION', '2.3.1' ); 28 28 define( 'MO_SPS_PLUGIN_FILE', __FILE__ ); 29 29 /** -
embed-sharepoint-onedrive-documents/trunk/includes/js/ajax.js
r3157334 r3162539 403 403 } 404 404 else { 405 // var relative_path = web_url.split(encodeURI(config['drive_name'])).pop();405 // var relative_path = web_url.split(encodeURI(config['drive_name'])).pop(); 406 406 if(doc_sync_data.connector == 'onedrive' && doc_sync_data.app_type == 'auto') { 407 const [first, ...rest] = web_url.split(encodeURI('Documents')); 408 var relative_path = rest.join(encodeURI('Documents')); 407 var drive_name = config['drive_name'] === 'OneDrive' ? 'Documents' : config['drive_name']; 408 const [first, ...rest] = web_url.split(encodeURI(drive_name)); 409 var relative_path = rest.join(encodeURI(drive_name)); 409 410 } 410 411 var path_ele = []; -
embed-sharepoint-onedrive-documents/trunk/readme.txt
r3157536 r3162539 6 6 Tested up to: 6.6 7 7 Requires PHP: 5.6 8 Stable tag: 2.3. 08 Stable tag: 2.3.1 9 9 License: MIT 10 10 … … 145 145 146 146 == ChangeLog == 147 148 = 2.3.1 = 149 * Fixed issue with the folders containing space in name 150 * BugFIX for OneDrive Business libraries 147 151 148 152 = 2.3.0 = … … 299 303 == Upgrade Notice == 300 304 305 = 2.3.1 = 306 * Fixed issue with the folders containing space in name 307 * BugFIX for OneDrive Business libraries 308 301 309 = 2.3.0 = 302 310 * Compatibility with WordPress 6.6
Note: See TracChangeset
for help on using the changeset viewer.