Changeset 3386677
- Timestamp:
- 10/29/2025 08:58:17 PM (4 weeks ago)
- Location:
- geoip-detect/trunk
- Files:
-
- 9 edited
-
geoip-detect.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
vendor/composer/InstalledVersions.php (modified) (5 diffs)
-
vendor/composer/installed.php (modified) (2 diffs)
-
vendor/geoip2/geoip2/src/Model/AbstractModel.php (modified) (1 diff)
-
vendor/geoip2/geoip2/src/Record/AbstractRecord.php (modified) (1 diff)
-
vendor/symfony/polyfill-intl-grapheme/bootstrap80.php (modified) (1 diff)
-
vendor/symfony/polyfill-mbstring/bootstrap80.php (modified) (7 diffs)
-
vendor/symfony/polyfill-php80/bootstrap.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
geoip-detect/trunk/geoip-detect.php
r3386669 r3386677 6 6 Author: Yellow Tree (Benjamin Pick) 7 7 Author URI: http://www.yellowtree.de 8 Version: 5.6. 08 Version: 5.6.1 9 9 License: GPLv3 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-3.0.html … … 16 16 */ 17 17 18 define('GEOIP_DETECT_VERSION', '5.6. 0');18 define('GEOIP_DETECT_VERSION', '5.6.1'); 19 19 20 20 /* -
geoip-detect/trunk/readme.txt
r3386669 r3386677 125 125 == Upgrade Notice == 126 126 127 = 5.6. 0=127 = 5.6.1 = 128 128 129 129 This update removes the deprecated shortcode [geoip_detect ...] (read the changelog for more details) … … 139 139 == Changelog == 140 140 141 = 5.6. 0=141 = 5.6.1 = 142 142 * FIX [!]: Remove deprecated shortcode [geoip_detect] (Security - CVE-2025-57993). If you are still using it, use [geoip_detect2 ...] instead, you might have to change the property name. 143 143 * FIX: Compatibility with Wordpress 6.7 (Textdomain loading) 144 144 * Library updates 145 146 (5.6.0 was not released) 145 147 146 148 = 5.5.0 = -
geoip-detect/trunk/vendor/composer/InstalledVersions.php
r3386669 r3386677 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 to31 * @internal32 */33 private static $selfDir = null;34 35 /**36 30 * @var mixed[]|null 37 31 * @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 38 32 */ 39 33 private static $installed; 40 41 /**42 * @var bool43 */44 private static $installedIsLocalDir;45 34 46 35 /** … … 321 310 self::$installed = $data; 322 311 self::$installedByVendor = array(); 323 324 // when using reload, we disable the duplicate protection to ensure that self::$installed data is325 // 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 listing327 // all installed packages for example328 self::$installedIsLocalDir = false;329 }330 331 /**332 * @return string333 */334 private static function getSelfDir()335 {336 if (self::$selfDir === null) {337 self::$selfDir = strtr(__DIR__, '\\', '/');338 }339 340 return self::$selfDir;341 312 } 342 313 … … 352 323 353 324 $installed = array(); 354 $copiedLocalDir = false;355 325 356 326 if (self::$canGetVendors) { 357 $selfDir = self::getSelfDir();358 327 foreach (ClassLoader::getRegisteredLoaders() as $vendorDir => $loader) { 359 $vendorDir = strtr($vendorDir, '\\', '/');360 328 if (isset(self::$installedByVendor[$vendorDir])) { 361 329 $installed[] = self::$installedByVendor[$vendorDir]; … … 363 331 /** @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 */ 364 332 $required = require $vendorDir.'/composer/installed.php'; 365 self::$installedByVendor[$vendorDir] = $required; 366 $installed[] = $required; 367 if (self::$installed === null && $vendorDir.'/composer' === $selfDir) { 368 self::$installed = $required; 369 self::$installedIsLocalDir = true; 333 $installed[] = self::$installedByVendor[$vendorDir] = $required; 334 if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) { 335 self::$installed = $installed[count($installed) - 1]; 370 336 } 371 }372 if (self::$installedIsLocalDir && $vendorDir.'/composer' === $selfDir) {373 $copiedLocalDir = true;374 337 } 375 338 } … … 388 351 } 389 352 390 if (self::$installed !== array() && !$copiedLocalDir) {353 if (self::$installed !== array()) { 391 354 $installed[] = self::$installed; 392 355 } -
geoip-detect/trunk/vendor/composer/installed.php
r3386669 r3386677 4 4 'pretty_version' => 'dev-develop', 5 5 'version' => 'dev-develop', 6 'reference' => ' 8f44e8dd505d5852c84953bd8fdb785452ee7114',6 'reference' => 'f6e98dc98217ce1d05e0cb4a073535700ceea690', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 440 440 'pretty_version' => 'dev-develop', 441 441 'version' => 'dev-develop', 442 'reference' => ' 8f44e8dd505d5852c84953bd8fdb785452ee7114',442 'reference' => 'f6e98dc98217ce1d05e0cb4a073535700ceea690', 443 443 'type' => 'wordpress-plugin', 444 444 'install_path' => __DIR__ . '/../../', -
geoip-detect/trunk/vendor/geoip2/geoip2/src/Model/AbstractModel.php
r3386669 r3386677 61 61 } 62 62 63 // PHP 8.1 : jsonSerialize(): mixed 64 #[\ReturnTypeWillChange] 63 65 public function jsonSerialize() 64 66 { -
geoip-detect/trunk/vendor/geoip2/geoip2/src/Record/AbstractRecord.php
r3386669 r3386677 55 55 } 56 56 57 #[\ReturnTypeWillChange] 57 58 public function jsonSerialize() 58 59 { -
geoip-detect/trunk/vendor/symfony/polyfill-intl-grapheme/bootstrap80.php
r3386669 r3386677 22 22 } 23 23 24 /* Note YellowTree: In order to commit this to the plugin SVN of Wordpress, I needed to remove the return value typing */ 25 24 26 if (!function_exists('grapheme_extract')) { 25 function grapheme_extract(?string $haystack, ?int $size, ?int $type = GRAPHEME_EXTR_COUNT, ?int $offset = 0, &$next = null) : string|false{ return p\Grapheme::grapheme_extract((string) $haystack, (int) $size, (int) $type, (int) $offset, $next); }27 function grapheme_extract(?string $haystack, ?int $size, ?int $type = GRAPHEME_EXTR_COUNT, ?int $offset = 0, &$next = null) { return p\Grapheme::grapheme_extract((string) $haystack, (int) $size, (int) $type, (int) $offset, $next); } 26 28 } 27 29 if (!function_exists('grapheme_stripos')) { 28 function grapheme_stripos(?string $haystack, ?string $needle, ?int $offset = 0) : int|false{ return p\Grapheme::grapheme_stripos((string) $haystack, (string) $needle, (int) $offset); }30 function grapheme_stripos(?string $haystack, ?string $needle, ?int $offset = 0) { return p\Grapheme::grapheme_stripos((string) $haystack, (string) $needle, (int) $offset); } 29 31 } 30 32 if (!function_exists('grapheme_stristr')) { 31 function grapheme_stristr(?string $haystack, ?string $needle, ?bool $beforeNeedle = false) : string|false{ return p\Grapheme::grapheme_stristr((string) $haystack, (string) $needle, (bool) $beforeNeedle); }33 function grapheme_stristr(?string $haystack, ?string $needle, ?bool $beforeNeedle = false) { return p\Grapheme::grapheme_stristr((string) $haystack, (string) $needle, (bool) $beforeNeedle); } 32 34 } 33 35 if (!function_exists('grapheme_strlen')) { 34 function grapheme_strlen(?string $string) : int|false|null{ return p\Grapheme::grapheme_strlen((string) $string); }36 function grapheme_strlen(?string $string) { return p\Grapheme::grapheme_strlen((string) $string); } 35 37 } 36 38 if (!function_exists('grapheme_strpos')) { 37 function grapheme_strpos(?string $haystack, ?string $needle, ?int $offset = 0) : int|false{ return p\Grapheme::grapheme_strpos((string) $haystack, (string) $needle, (int) $offset); }39 function grapheme_strpos(?string $haystack, ?string $needle, ?int $offset = 0) { return p\Grapheme::grapheme_strpos((string) $haystack, (string) $needle, (int) $offset); } 38 40 } 39 41 if (!function_exists('grapheme_strripos')) { 40 function grapheme_strripos(?string $haystack, ?string $needle, ?int $offset = 0) : int|false{ return p\Grapheme::grapheme_strripos((string) $haystack, (string) $needle, (int) $offset); }42 function grapheme_strripos(?string $haystack, ?string $needle, ?int $offset = 0) { return p\Grapheme::grapheme_strripos((string) $haystack, (string) $needle, (int) $offset); } 41 43 } 42 44 if (!function_exists('grapheme_strrpos')) { 43 function grapheme_strrpos(?string $haystack, ?string $needle, ?int $offset = 0) : int|false{ return p\Grapheme::grapheme_strrpos((string) $haystack, (string) $needle, (int) $offset); }45 function grapheme_strrpos(?string $haystack, ?string $needle, ?int $offset = 0) { return p\Grapheme::grapheme_strrpos((string) $haystack, (string) $needle, (int) $offset); } 44 46 } 45 47 if (!function_exists('grapheme_strstr')) { 46 function grapheme_strstr(?string $haystack, ?string $needle, ?bool $beforeNeedle = false) : string|false{ return p\Grapheme::grapheme_strstr((string) $haystack, (string) $needle, (bool) $beforeNeedle); }48 function grapheme_strstr(?string $haystack, ?string $needle, ?bool $beforeNeedle = false) { return p\Grapheme::grapheme_strstr((string) $haystack, (string) $needle, (bool) $beforeNeedle); } 47 49 } 48 50 if (!function_exists('grapheme_substr')) { 49 function grapheme_substr(?string $string, ?int $offset, ?int $length = null) : string|false { return p\Grapheme::grapheme_substr((string) $string, (int) $offset,$length); }51 function grapheme_substr(?string $string, ?int $offset, ?int $length = null) { return p\Grapheme::grapheme_substr((string) $string, (int) $offset, (int) $length); } 50 52 } -
geoip-detect/trunk/vendor/symfony/polyfill-mbstring/bootstrap80.php
r3386669 r3386677 12 12 use Symfony\Polyfill\Mbstring as p; 13 13 14 15 /* Note YellowTree: In order to commit this to the plugin SVN of Wordpress, I needed to remove the args typing */ 16 14 17 if (!function_exists('mb_convert_encoding')) { 15 function mb_convert_encoding( array|string|null $string, ?string $to_encoding, array|string|null $from_encoding = null): array|string|false{ return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding); }18 function mb_convert_encoding($string, ?string $to_encoding, $from_encoding = null) { return p\Mbstring::mb_convert_encoding($string ?? '', (string) $to_encoding, $from_encoding); } 16 19 } 17 20 if (!function_exists('mb_decode_mimeheader')) { … … 31 34 } 32 35 if (!function_exists('mb_internal_encoding')) { 33 function mb_internal_encoding(?string $encoding = null) : string|bool{ return p\Mbstring::mb_internal_encoding($encoding); }36 function mb_internal_encoding(?string $encoding = null) { return p\Mbstring::mb_internal_encoding($encoding); } 34 37 } 35 38 if (!function_exists('mb_language')) { 36 function mb_language(?string $language = null) : string|bool{ return p\Mbstring::mb_language($language); }39 function mb_language(?string $language = null) { return p\Mbstring::mb_language($language); } 37 40 } 38 41 if (!function_exists('mb_list_encodings')) { … … 43 46 } 44 47 if (!function_exists('mb_check_encoding')) { 45 function mb_check_encoding( array|string|null$value = null, ?string $encoding = null): bool { return p\Mbstring::mb_check_encoding($value, $encoding); }48 function mb_check_encoding($value = null, ?string $encoding = null): bool { return p\Mbstring::mb_check_encoding($value, $encoding); } 46 49 } 47 50 if (!function_exists('mb_detect_encoding')) { 48 function mb_detect_encoding(?string $string, array|string|null $encodings = null, ?bool $strict = false): string|false{ return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict); }51 function mb_detect_encoding(?string $string, $encodings = null, ?bool $strict = false) { return p\Mbstring::mb_detect_encoding((string) $string, $encodings, (bool) $strict); } 49 52 } 50 53 if (!function_exists('mb_detect_order')) { 51 function mb_detect_order( array|string|null $encoding = null): array|bool { return p\Mbstring::mb_detect_order($encoding); }54 function mb_detect_order($encoding = null) { return p\Mbstring::mb_detect_order((string) $encoding); } 52 55 } 53 56 if (!function_exists('mb_parse_str')) { 54 function mb_parse_str(?string $string, &$result = []): bool { parse_str((string) $string, $result); return (bool) $result;}57 function mb_parse_str(?string $string, &$result = []): bool { parse_str((string) $string, $result); } 55 58 } 56 59 if (!function_exists('mb_strlen')) { … … 58 61 } 59 62 if (!function_exists('mb_strpos')) { 60 function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) : int|false{ return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }63 function mb_strpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) { return p\Mbstring::mb_strpos((string) $haystack, (string) $needle, (int) $offset, $encoding); } 61 64 } 62 65 if (!function_exists('mb_strtolower')) { … … 67 70 } 68 71 if (!function_exists('mb_substitute_character')) { 69 function mb_substitute_character( string|int|null $substitute_character = null): string|int|bool{ return p\Mbstring::mb_substitute_character($substitute_character); }72 function mb_substitute_character($substitute_character = null) { return p\Mbstring::mb_substitute_character($substitute_character); } 70 73 } 71 74 if (!function_exists('mb_substr')) { … … 73 76 } 74 77 if (!function_exists('mb_stripos')) { 75 function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) : int|false{ return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }78 function mb_stripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) { return p\Mbstring::mb_stripos((string) $haystack, (string) $needle, (int) $offset, $encoding); } 76 79 } 77 80 if (!function_exists('mb_stristr')) { 78 function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) : string|false{ return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }81 function mb_stristr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) { return p\Mbstring::mb_stristr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); } 79 82 } 80 83 if (!function_exists('mb_strrchr')) { 81 function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) : string|false { return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, (bool) $before_needle,$encoding); }84 function mb_strrchr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) { return p\Mbstring::mb_strrchr((string) $haystack, (string) $needle, $before_needle, (bool) $encoding); } 82 85 } 83 86 if (!function_exists('mb_strrichr')) { 84 function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) : string|false{ return p\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }87 function mb_strrichr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) { return p\Mbstring::mb_strrichr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); } 85 88 } 86 89 if (!function_exists('mb_strripos')) { 87 function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) : int|false{ return p\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding); }90 function mb_strripos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) { return p\Mbstring::mb_strripos((string) $haystack, (string) $needle, (int) $offset, $encoding); } 88 91 } 89 92 if (!function_exists('mb_strrpos')) { 90 function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) : int|false{ return p\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding); }93 function mb_strrpos(?string $haystack, ?string $needle, ?int $offset = 0, ?string $encoding = null) { return p\Mbstring::mb_strrpos((string) $haystack, (string) $needle, (int) $offset, $encoding); } 91 94 } 92 95 if (!function_exists('mb_strstr')) { 93 function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) : string|false{ return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); }96 function mb_strstr(?string $haystack, ?string $needle, ?bool $before_needle = false, ?string $encoding = null) { return p\Mbstring::mb_strstr((string) $haystack, (string) $needle, (bool) $before_needle, $encoding); } 94 97 } 95 98 if (!function_exists('mb_get_info')) { 96 function mb_get_info(?string $type = 'all') : array|string|int|false{ return p\Mbstring::mb_get_info((string) $type); }99 function mb_get_info(?string $type = 'all') { return p\Mbstring::mb_get_info((string) $type); } 97 100 } 98 101 if (!function_exists('mb_http_output')) { 99 function mb_http_output(?string $encoding = null) : string|bool{ return p\Mbstring::mb_http_output($encoding); }102 function mb_http_output(?string $encoding = null) { return p\Mbstring::mb_http_output($encoding); } 100 103 } 101 104 if (!function_exists('mb_strwidth')) { … … 109 112 } 110 113 if (!function_exists('mb_http_input')) { 111 function mb_http_input(?string $type = null) : array|string|false{ return p\Mbstring::mb_http_input($type); }114 function mb_http_input(?string $type = null) { return p\Mbstring::mb_http_input($type); } 112 115 } 113 116 114 117 if (!function_exists('mb_convert_variables')) { 115 function mb_convert_variables(?string $to_encoding, array|string|null $from_encoding, mixed &$var, mixed &...$vars): string|false{ return p\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars); }118 function mb_convert_variables(?string $to_encoding, $from_encoding, mixed &$var, mixed &...$vars) { return p\Mbstring::mb_convert_variables((string) $to_encoding, $from_encoding ?? '', $var, ...$vars); } 116 119 } 117 120 118 121 if (!function_exists('mb_ord')) { 119 function mb_ord(?string $string, ?string $encoding = null) : int|false{ return p\Mbstring::mb_ord((string) $string, $encoding); }122 function mb_ord(?string $string, ?string $encoding = null) { return p\Mbstring::mb_ord((string) $string, $encoding); } 120 123 } 121 124 if (!function_exists('mb_chr')) { 122 function mb_chr(?int $codepoint, ?string $encoding = null) : string|false{ return p\Mbstring::mb_chr((int) $codepoint, $encoding); }125 function mb_chr(?int $codepoint, ?string $encoding = null) { return p\Mbstring::mb_chr((int) $codepoint, $encoding); } 123 126 } 124 127 if (!function_exists('mb_scrub')) { 125 function mb_scrub( ?string $string, ?string $encoding = null): string { $encoding ??= mb_internal_encoding(); return mb_convert_encoding((string)$string, $encoding, $encoding); }128 function mb_scrub($string, $encoding = null) { $encoding = null === $encoding ? mb_internal_encoding() : $encoding; return mb_convert_encoding($string, $encoding, $encoding); } 126 129 } 127 130 if (!function_exists('mb_str_split')) { -
geoip-detect/trunk/vendor/symfony/polyfill-php80/bootstrap.php
r3386669 r3386677 27 27 } 28 28 if (!function_exists('str_contains')) { 29 function str_contains(?string $haystack, ?string $needle): bool { return p\Php80::str_contains($haystack ?? '', $needle ?? ''); } 29 // Note YellowTree - Changed method signature to make it compatible 30 function str_contains($haystack, $needle): bool { 31 if (!is_string($haystack) || !is_string($needle)) { return false; } 32 return p\Php80::str_contains($haystack, $needle); 33 } 30 34 } 31 35 if (!function_exists('str_starts_with')) { 32 function str_starts_with( ?string $haystack, ?string $needle): bool { return p\Php80::str_starts_with($haystack ?? '', $needle ?? ''); }36 function str_starts_with(string $haystack, string $needle): bool { return p\Php80::str_starts_with($haystack, $needle); } 33 37 } 34 38 if (!function_exists('str_ends_with')) { 35 function str_ends_with( ?string $haystack, ?string $needle): bool { return p\Php80::str_ends_with($haystack ?? '', $needle ?? ''); }39 function str_ends_with(string $haystack, string $needle): bool { return p\Php80::str_ends_with($haystack, $needle); } 36 40 } 37 41 if (!function_exists('get_debug_type')) {
Note: See TracChangeset
for help on using the changeset viewer.