Changeset 3299013
- Timestamp:
- 05/22/2025 07:19:17 PM (7 months ago)
- Location:
- buddypress-docs
- Files:
-
- 22 edited
- 1 copied
-
tags/2.2.5 (copied) (copied from buddypress-docs/trunk)
-
tags/2.2.5/includes/component.php (modified) (1 diff)
-
tags/2.2.5/includes/functions.php (modified) (1 diff)
-
tags/2.2.5/includes/templatetags-edit.php (modified) (1 diff)
-
tags/2.2.5/languages/buddypress-docs-ro_RO.mo (modified) (previous)
-
tags/2.2.5/languages/buddypress-docs-ro_RO.po (modified) (1 diff)
-
tags/2.2.5/languages/buddypress-docs.pot (modified) (5 diffs)
-
tags/2.2.5/loader.php (modified) (2 diffs)
-
tags/2.2.5/readme.txt (modified) (2 diffs)
-
tags/2.2.5/vendor/autoload.php (modified) (1 diff)
-
tags/2.2.5/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
tags/2.2.5/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/includes/component.php (modified) (1 diff)
-
trunk/includes/functions.php (modified) (1 diff)
-
trunk/includes/templatetags-edit.php (modified) (1 diff)
-
trunk/languages/buddypress-docs-ro_RO.mo (modified) (previous)
-
trunk/languages/buddypress-docs-ro_RO.po (modified) (1 diff)
-
trunk/languages/buddypress-docs.pot (modified) (5 diffs)
-
trunk/loader.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
buddypress-docs/tags/2.2.5/includes/component.php
r3162780 r3299013 458 458 if ( ! empty( $_POST['doc-edit-submit'] ) || ! empty( $_POST['doc-edit-submit-continue'] ) ) { 459 459 460 // Existing Docs have a more specific permission check. 461 $doc = bp_docs_get_current_doc(); 462 if ( $doc && ! current_user_can( 'bp_docs_edit', $doc->ID ) ) { 463 return; 464 } elseif ( ! $doc && ! current_user_can( 'bp_docs_create' ) ) { 465 return; 466 } 467 460 $doc_id = false; 461 if ( isset( $_POST['doc-id'] ) ) { 462 $doc_id = absint( $_POST['doc-id'] ); 463 } 464 465 $current_doc = bp_docs_get_current_doc(); 466 if ( $current_doc ) { 467 // Don't allow editing if there's a mismatch. 468 if ( $doc_id && $doc_id !== $current_doc->ID ) { 469 return; 470 } 471 472 $doc_id = $current_doc->ID; 473 } 474 475 // Legacy. 468 476 check_admin_referer( 'bp_docs_save' ); 477 478 if ( $doc_id ) { 479 check_admin_referer( 'bp_docs_edit_' . (string) $doc_id, 'bp_docs_edit_nonce' ); 480 } 469 481 470 482 $result = bp_docs_save_doc_via_post(); -
buddypress-docs/tags/2.2.5/includes/functions.php
r1957023 r3299013 1111 1111 ); 1112 1112 1113 if ( isset( $_POST['doc_id'] ) && 0 != $_POST['doc_id']) {1113 if ( empty( $args['doc_id'] ) && ! empty( $_POST['doc_id'] ) ) { 1114 1114 $args['doc_id'] = (int) $_POST['doc_id']; 1115 } 1116 1117 // Existing Docs have a more specific permission check. 1118 if ( $args['doc_id'] && ! current_user_can( 'bp_docs_edit', $args['doc_id'] ) ) { 1119 return; 1120 } elseif ( ! $args['doc_id'] && ! current_user_can( 'bp_docs_create' ) ) { 1121 return; 1115 1122 } 1116 1123 -
buddypress-docs/tags/2.2.5/includes/templatetags-edit.php
r3162780 r3299013 98 98 return apply_filters( 'bp_docs_get_edit_doc_content', $content ); 99 99 } 100 101 /** 102 * Echoes a nonce field for specific doc editing. 103 * 104 * @since 2.2.5 105 * 106 * @param int $doc_id The ID of the doc being edited. If not set, will use the current doc. 107 * We make this optional because old templates may not pass it. 108 * @return void 109 */ 110 function bp_docs_edit_doc_nonce( $doc_id = null ) { 111 if ( ! $doc_id ) { 112 $doc = bp_docs_get_current_doc(); 113 if ( $doc ) { 114 $doc_id = $doc->ID; 115 } 116 } 117 118 if ( ! $doc_id ) { 119 return; 120 } 121 122 wp_nonce_field( 'bp_docs_edit_' . (string) $doc_id, 'bp_docs_edit_nonce' ); 123 } 124 add_action( 'bp_docs_before_doc_edit_content', 'bp_docs_edit_doc_nonce' ); 100 125 101 126 /** -
buddypress-docs/tags/2.2.5/languages/buddypress-docs-ro_RO.po
r1777844 r3299013 215 215 #: includes/templates/docs/docs-loop.php:79 216 216 msgid "Viewing %1$s-%2$s of %3$s docs" 217 msgstr "Vizualizarea %1$ s-% 2$ s de %3$s docs"217 msgstr "Vizualizarea %1$s-%2$s de %3$s docs" 218 218 219 219 #: includes/templates/docs/docs-loop.php:89 -
buddypress-docs/tags/2.2.5/languages/buddypress-docs.pot
r3162780 r3299013 1 # Copyright (C) 202 4Boone B Gorges, David Cavins1 # Copyright (C) 2025 Boone B Gorges, David Cavins 2 2 # This file is distributed under the same license as the BuddyPress Docs plugin. 3 3 msgid "" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 4-10-04T09:14:01-05:00\n"12 "POT-Creation-Date: 2025-05-22T14:13:55-05:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.9.0\n" … … 568 568 569 569 #: includes/attachments.php:434 570 #: includes/component.php:1 091570 #: includes/component.php:1103 571 571 msgid "Upload File" 572 572 msgstr "" 573 573 574 574 #: includes/attachments.php:435 575 #: includes/component.php:1 092575 #: includes/component.php:1104 576 576 msgid "OK" 577 577 msgstr "" … … 693 693 msgstr "" 694 694 695 #: includes/component.php: 495695 #: includes/component.php:507 696 696 msgid "This doc is currently being edited by %s. To prevent overwrites, you cannot edit until that user has finished. Please try again in a few minutes." 697 697 msgstr "" 698 698 699 #: includes/component.php:5 08699 #: includes/component.php:520 700 700 msgid "You do not have permission to edit the doc." 701 701 msgstr "" 702 702 703 #: includes/component.php:5 22703 #: includes/component.php:534 704 704 msgid "You do not have permission to create a Doc in this group." 705 705 msgstr "" 706 706 707 #: includes/component.php:5 36707 #: includes/component.php:548 708 708 msgid "You do not have permission to view this Doc's history." 709 709 msgstr "" 710 710 711 #: includes/component.php:5 60711 #: includes/component.php:572 712 712 msgid "Lock successfully removed" 713 713 msgstr "" 714 714 715 #: includes/component.php: 592715 #: includes/component.php:604 716 716 msgid "Doc successfully deleted!" 717 717 msgstr "" 718 718 719 #: includes/component.php: 594719 #: includes/component.php:606 720 720 msgid "Could not delete doc." 721 721 msgstr "" 722 722 723 #: includes/component.php: 597723 #: includes/component.php:609 724 724 msgid "You do not have permission to delete that doc." 725 725 msgstr "" 726 726 727 #: includes/component.php:6 18727 #: includes/component.php:630 728 728 msgid "Doc successfully removed from Trash!" 729 729 msgstr "" 730 730 731 #: includes/component.php:6 20731 #: includes/component.php:632 732 732 msgid "Could not remove Doc from Trash." 733 733 msgstr "" 734 734 735 #: includes/component.php:6 23735 #: includes/component.php:635 736 736 msgid "You do not have permission to remove that Doc from the Trash." 737 737 msgstr "" 738 738 739 #: includes/component.php:6 38739 #: includes/component.php:650 740 740 msgid "Doc successfully removed from the group" 741 741 msgstr "" 742 742 743 #: includes/component.php:6 40743 #: includes/component.php:652 744 744 msgid "Could not remove Doc from the group." 745 745 msgstr "" 746 746 747 #: includes/component.php:6 43747 #: includes/component.php:655 748 748 msgid "You do not have permission to remove that Doc from this group." 749 749 msgstr "" 750 750 751 #: includes/component.php:9 78752 #: includes/component.php:10 01753 #: includes/component.php:10 03751 #: includes/component.php:990 752 #: includes/component.php:1013 753 #: includes/component.php:1015 754 754 msgid "Search" 755 755 msgstr "" 756 756 757 #: includes/component.php:10 86757 #: includes/component.php:1098 758 758 msgid "and %d more" 759 759 msgstr "" 760 760 761 #: includes/component.php:1 088761 #: includes/component.php:1100 762 762 msgid "show all tags" 763 763 msgstr "" 764 764 765 #: includes/component.php:1 089765 #: includes/component.php:1101 766 766 msgid "show fewer tags" 767 767 msgstr "" 768 768 769 #: includes/component.php:1 090769 #: includes/component.php:1102 770 770 msgid "Still working?" 771 771 msgstr "" … … 1164 1164 msgstr "" 1165 1165 1166 #: includes/templatetags-edit.php:1 471166 #: includes/templatetags-edit.php:172 1167 1167 msgid "(no parent)" 1168 1168 msgstr "" -
buddypress-docs/tags/2.2.5/loader.php
r3162780 r3299013 4 4 Plugin URI: http://github.com/boonebgorges/buddypress-docs 5 5 Description: Adds collaborative Docs to BuddyPress 6 Version: 2.2. 46 Version: 2.2.5 7 7 Author: Boone B Gorges, David Cavins 8 8 Author URI: http://boone.gorg.es … … 16 16 */ 17 17 18 define( 'BP_DOCS_VERSION', '2.2. 4' );18 define( 'BP_DOCS_VERSION', '2.2.5' ); 19 19 20 20 require_once __DIR__ . '/vendor/autoload.php'; -
buddypress-docs/tags/2.2.5/readme.txt
r3162780 r3299013 4 4 Tags: buddypress, docs, wiki, documents, collaboration 5 5 Requires at least: 3.3 6 Tested up to: 6. 67 Stable tag: 2.2. 46 Tested up to: 6.8 7 Stable tag: 2.2.5 8 8 9 9 Adds collaborative Docs to BuddyPress. … … 33 33 34 34 == Changelog == 35 36 = 2.2.5 = 37 * Security fix: Prevent users from editing Docs that they do not have permission to edit. Props to HedgeByte Cybersecurity for reporting this issue. 38 * Fixed bug in ro_RO translation package. 35 39 36 40 = 2.2.4 = -
buddypress-docs/tags/2.2.5/vendor/autoload.php
r3003509 r3299013 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 -
buddypress-docs/tags/2.2.5/vendor/composer/InstalledVersions.php
r3003509 r3299013 28 28 { 29 29 /** 30 * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to 31 * @internal 32 */ 33 private static $selfDir = null; 34 35 /** 30 36 * @var mixed[]|null 31 37 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 38 */ 33 39 private static $installed; 40 41 /** 42 * @var bool 43 */ 44 private static $installedIsLocalDir; 34 45 35 46 /** … … 310 321 self::$installed = $data; 311 322 self::$installedByVendor = array(); 323 324 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 325 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 326 // so we have to assume it does not, and that may result in duplicate data being returned when listing 327 // all installed packages for example 328 self::$installedIsLocalDir = false; 329 } 330 331 /** 332 * @return string 333 */ 334 private static function getSelfDir() 335 { 336 if (self::$selfDir === null) { 337 self::$selfDir = strtr(__DIR__, '\\', '/'); 338 } 339 340 return self::$selfDir; 312 341 } 313 342 … … 323 352 324 353 $installed = array(); 354 $copiedLocalDir = false; 325 355 326 356 if (self::$canGetVendors) { 357 $selfDir = self::getSelfDir(); 327 358 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 359 $vendorDir = strtr($vendorDir, '\\', '/'); 328 360 if (isset(self::$installedByVendor[$vendorDir])) { 329 361 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 363 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 364 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 365 self::$installedByVendor[$vendorDir] = $required; 366 $installed[] = $required; 367 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 368 self::$installed = $required; 369 self::$installedIsLocalDir = true; 336 370 } 371 } 372 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 373 $copiedLocalDir = true; 337 374 } 338 375 } … … 351 388 } 352 389 353 if (self::$installed !== array() ) {390 if (self::$installed !== array() && !$copiedLocalDir) { 354 391 $installed[] = self::$installed; 355 392 } -
buddypress-docs/tags/2.2.5/vendor/composer/installed.php
r3162780 r3299013 2 2 'root' => array( 3 3 'name' => 'boonebgorges/buddypress-docs', 4 'pretty_version' => '2. 1.4',5 'version' => '2. 1.4.0',4 'pretty_version' => '2.2.5', 5 'version' => '2.2.5.0', 6 6 'reference' => null, 7 7 'type' => 'project', … … 12 12 'versions' => array( 13 13 'boonebgorges/buddypress-docs' => array( 14 'pretty_version' => '2. 1.4',15 'version' => '2. 1.4.0',14 'pretty_version' => '2.2.5', 15 'version' => '2.2.5.0', 16 16 'reference' => null, 17 17 'type' => 'project', -
buddypress-docs/trunk/includes/component.php
r3162780 r3299013 458 458 if ( ! empty( $_POST['doc-edit-submit'] ) || ! empty( $_POST['doc-edit-submit-continue'] ) ) { 459 459 460 // Existing Docs have a more specific permission check. 461 $doc = bp_docs_get_current_doc(); 462 if ( $doc && ! current_user_can( 'bp_docs_edit', $doc->ID ) ) { 463 return; 464 } elseif ( ! $doc && ! current_user_can( 'bp_docs_create' ) ) { 465 return; 466 } 467 460 $doc_id = false; 461 if ( isset( $_POST['doc-id'] ) ) { 462 $doc_id = absint( $_POST['doc-id'] ); 463 } 464 465 $current_doc = bp_docs_get_current_doc(); 466 if ( $current_doc ) { 467 // Don't allow editing if there's a mismatch. 468 if ( $doc_id && $doc_id !== $current_doc->ID ) { 469 return; 470 } 471 472 $doc_id = $current_doc->ID; 473 } 474 475 // Legacy. 468 476 check_admin_referer( 'bp_docs_save' ); 477 478 if ( $doc_id ) { 479 check_admin_referer( 'bp_docs_edit_' . (string) $doc_id, 'bp_docs_edit_nonce' ); 480 } 469 481 470 482 $result = bp_docs_save_doc_via_post(); -
buddypress-docs/trunk/includes/functions.php
r1957023 r3299013 1111 1111 ); 1112 1112 1113 if ( isset( $_POST['doc_id'] ) && 0 != $_POST['doc_id']) {1113 if ( empty( $args['doc_id'] ) && ! empty( $_POST['doc_id'] ) ) { 1114 1114 $args['doc_id'] = (int) $_POST['doc_id']; 1115 } 1116 1117 // Existing Docs have a more specific permission check. 1118 if ( $args['doc_id'] && ! current_user_can( 'bp_docs_edit', $args['doc_id'] ) ) { 1119 return; 1120 } elseif ( ! $args['doc_id'] && ! current_user_can( 'bp_docs_create' ) ) { 1121 return; 1115 1122 } 1116 1123 -
buddypress-docs/trunk/includes/templatetags-edit.php
r3162780 r3299013 98 98 return apply_filters( 'bp_docs_get_edit_doc_content', $content ); 99 99 } 100 101 /** 102 * Echoes a nonce field for specific doc editing. 103 * 104 * @since 2.2.5 105 * 106 * @param int $doc_id The ID of the doc being edited. If not set, will use the current doc. 107 * We make this optional because old templates may not pass it. 108 * @return void 109 */ 110 function bp_docs_edit_doc_nonce( $doc_id = null ) { 111 if ( ! $doc_id ) { 112 $doc = bp_docs_get_current_doc(); 113 if ( $doc ) { 114 $doc_id = $doc->ID; 115 } 116 } 117 118 if ( ! $doc_id ) { 119 return; 120 } 121 122 wp_nonce_field( 'bp_docs_edit_' . (string) $doc_id, 'bp_docs_edit_nonce' ); 123 } 124 add_action( 'bp_docs_before_doc_edit_content', 'bp_docs_edit_doc_nonce' ); 100 125 101 126 /** -
buddypress-docs/trunk/languages/buddypress-docs-ro_RO.po
r1777844 r3299013 215 215 #: includes/templates/docs/docs-loop.php:79 216 216 msgid "Viewing %1$s-%2$s of %3$s docs" 217 msgstr "Vizualizarea %1$ s-% 2$ s de %3$s docs"217 msgstr "Vizualizarea %1$s-%2$s de %3$s docs" 218 218 219 219 #: includes/templates/docs/docs-loop.php:89 -
buddypress-docs/trunk/languages/buddypress-docs.pot
r3162780 r3299013 1 # Copyright (C) 202 4Boone B Gorges, David Cavins1 # Copyright (C) 2025 Boone B Gorges, David Cavins 2 2 # This file is distributed under the same license as the BuddyPress Docs plugin. 3 3 msgid "" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 202 4-10-04T09:14:01-05:00\n"12 "POT-Creation-Date: 2025-05-22T14:13:55-05:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.9.0\n" … … 568 568 569 569 #: includes/attachments.php:434 570 #: includes/component.php:1 091570 #: includes/component.php:1103 571 571 msgid "Upload File" 572 572 msgstr "" 573 573 574 574 #: includes/attachments.php:435 575 #: includes/component.php:1 092575 #: includes/component.php:1104 576 576 msgid "OK" 577 577 msgstr "" … … 693 693 msgstr "" 694 694 695 #: includes/component.php: 495695 #: includes/component.php:507 696 696 msgid "This doc is currently being edited by %s. To prevent overwrites, you cannot edit until that user has finished. Please try again in a few minutes." 697 697 msgstr "" 698 698 699 #: includes/component.php:5 08699 #: includes/component.php:520 700 700 msgid "You do not have permission to edit the doc." 701 701 msgstr "" 702 702 703 #: includes/component.php:5 22703 #: includes/component.php:534 704 704 msgid "You do not have permission to create a Doc in this group." 705 705 msgstr "" 706 706 707 #: includes/component.php:5 36707 #: includes/component.php:548 708 708 msgid "You do not have permission to view this Doc's history." 709 709 msgstr "" 710 710 711 #: includes/component.php:5 60711 #: includes/component.php:572 712 712 msgid "Lock successfully removed" 713 713 msgstr "" 714 714 715 #: includes/component.php: 592715 #: includes/component.php:604 716 716 msgid "Doc successfully deleted!" 717 717 msgstr "" 718 718 719 #: includes/component.php: 594719 #: includes/component.php:606 720 720 msgid "Could not delete doc." 721 721 msgstr "" 722 722 723 #: includes/component.php: 597723 #: includes/component.php:609 724 724 msgid "You do not have permission to delete that doc." 725 725 msgstr "" 726 726 727 #: includes/component.php:6 18727 #: includes/component.php:630 728 728 msgid "Doc successfully removed from Trash!" 729 729 msgstr "" 730 730 731 #: includes/component.php:6 20731 #: includes/component.php:632 732 732 msgid "Could not remove Doc from Trash." 733 733 msgstr "" 734 734 735 #: includes/component.php:6 23735 #: includes/component.php:635 736 736 msgid "You do not have permission to remove that Doc from the Trash." 737 737 msgstr "" 738 738 739 #: includes/component.php:6 38739 #: includes/component.php:650 740 740 msgid "Doc successfully removed from the group" 741 741 msgstr "" 742 742 743 #: includes/component.php:6 40743 #: includes/component.php:652 744 744 msgid "Could not remove Doc from the group." 745 745 msgstr "" 746 746 747 #: includes/component.php:6 43747 #: includes/component.php:655 748 748 msgid "You do not have permission to remove that Doc from this group." 749 749 msgstr "" 750 750 751 #: includes/component.php:9 78752 #: includes/component.php:10 01753 #: includes/component.php:10 03751 #: includes/component.php:990 752 #: includes/component.php:1013 753 #: includes/component.php:1015 754 754 msgid "Search" 755 755 msgstr "" 756 756 757 #: includes/component.php:10 86757 #: includes/component.php:1098 758 758 msgid "and %d more" 759 759 msgstr "" 760 760 761 #: includes/component.php:1 088761 #: includes/component.php:1100 762 762 msgid "show all tags" 763 763 msgstr "" 764 764 765 #: includes/component.php:1 089765 #: includes/component.php:1101 766 766 msgid "show fewer tags" 767 767 msgstr "" 768 768 769 #: includes/component.php:1 090769 #: includes/component.php:1102 770 770 msgid "Still working?" 771 771 msgstr "" … … 1164 1164 msgstr "" 1165 1165 1166 #: includes/templatetags-edit.php:1 471166 #: includes/templatetags-edit.php:172 1167 1167 msgid "(no parent)" 1168 1168 msgstr "" -
buddypress-docs/trunk/loader.php
r3162780 r3299013 4 4 Plugin URI: http://github.com/boonebgorges/buddypress-docs 5 5 Description: Adds collaborative Docs to BuddyPress 6 Version: 2.2. 46 Version: 2.2.5 7 7 Author: Boone B Gorges, David Cavins 8 8 Author URI: http://boone.gorg.es … … 16 16 */ 17 17 18 define( 'BP_DOCS_VERSION', '2.2. 4' );18 define( 'BP_DOCS_VERSION', '2.2.5' ); 19 19 20 20 require_once __DIR__ . '/vendor/autoload.php'; -
buddypress-docs/trunk/readme.txt
r3162780 r3299013 4 4 Tags: buddypress, docs, wiki, documents, collaboration 5 5 Requires at least: 3.3 6 Tested up to: 6. 67 Stable tag: 2.2. 46 Tested up to: 6.8 7 Stable tag: 2.2.5 8 8 9 9 Adds collaborative Docs to BuddyPress. … … 33 33 34 34 == Changelog == 35 36 = 2.2.5 = 37 * Security fix: Prevent users from editing Docs that they do not have permission to edit. Props to HedgeByte Cybersecurity for reporting this issue. 38 * Fixed bug in ro_RO translation package. 35 39 36 40 = 2.2.4 = -
buddypress-docs/trunk/vendor/autoload.php
r3003509 r3299013 15 15 } 16 16 } 17 trigger_error( 18 $err, 19 E_USER_ERROR 20 ); 17 throw new RuntimeException($err); 21 18 } 22 19 -
buddypress-docs/trunk/vendor/composer/InstalledVersions.php
r3003509 r3299013 28 28 { 29 29 /** 30 * @var string|null if set (by reflection by Composer), this should be set to the path where this class is being copied to 31 * @internal 32 */ 33 private static $selfDir = null; 34 35 /** 30 36 * @var mixed[]|null 31 37 * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null 32 38 */ 33 39 private static $installed; 40 41 /** 42 * @var bool 43 */ 44 private static $installedIsLocalDir; 34 45 35 46 /** … … 310 321 self::$installed = $data; 311 322 self::$installedByVendor = array(); 323 324 // when using reload, we disable the duplicate protection to ensure that self::$installed data is 325 // always returned, but we cannot know whether it comes from the installed.php in __DIR__ or not, 326 // so we have to assume it does not, and that may result in duplicate data being returned when listing 327 // all installed packages for example 328 self::$installedIsLocalDir = false; 329 } 330 331 /** 332 * @return string 333 */ 334 private static function getSelfDir() 335 { 336 if (self::$selfDir === null) { 337 self::$selfDir = strtr(__DIR__, '\\', '/'); 338 } 339 340 return self::$selfDir; 312 341 } 313 342 … … 323 352 324 353 $installed = array(); 354 $copiedLocalDir = false; 325 355 326 356 if (self::$canGetVendors) { 357 $selfDir = self::getSelfDir(); 327 358 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 359 $vendorDir = strtr($vendorDir, '\\', '/'); 328 360 if (isset(self::$installedByVendor[$vendorDir])) { 329 361 $installed[] = self::$installedByVendor[$vendorDir]; … … 331 363 /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */ 332 364 $required = require $vendorDir.'/composer/installed.php'; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 365 self::$installedByVendor[$vendorDir] = $required; 366 $installed[] = $required; 367 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 368 self::$installed = $required; 369 self::$installedIsLocalDir = true; 336 370 } 371 } 372 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) { 373 $copiedLocalDir = true; 337 374 } 338 375 } … … 351 388 } 352 389 353 if (self::$installed !== array() ) {390 if (self::$installed !== array() && !$copiedLocalDir) { 354 391 $installed[] = self::$installed; 355 392 } -
buddypress-docs/trunk/vendor/composer/installed.php
r3162780 r3299013 2 2 'root' => array( 3 3 'name' => 'boonebgorges/buddypress-docs', 4 'pretty_version' => '2. 1.4',5 'version' => '2. 1.4.0',4 'pretty_version' => '2.2.5', 5 'version' => '2.2.5.0', 6 6 'reference' => null, 7 7 'type' => 'project', … … 12 12 'versions' => array( 13 13 'boonebgorges/buddypress-docs' => array( 14 'pretty_version' => '2. 1.4',15 'version' => '2. 1.4.0',14 'pretty_version' => '2.2.5', 15 'version' => '2.2.5.0', 16 16 'reference' => null, 17 17 'type' => 'project',
Note: See TracChangeset
for help on using the changeset viewer.