Changeset 2474432
- Timestamp:
- 02/14/2021 11:14:06 AM (5 years ago)
- Location:
- quick-login
- Files:
-
- 5 added
- 10 deleted
- 15 edited
-
assets/banner-1544x500.png (modified) (previous)
-
assets/banner-772x250.png (modified) (previous)
-
assets/icon-128x128.png (modified) (previous)
-
assets/icon-256x256.png (modified) (previous)
-
trunk/composer.json (modified) (1 diff)
-
trunk/composer.lock (modified) (7 diffs)
-
trunk/quick-login.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/vendor/composer/autoload_files.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_psr4.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_static.php (modified) (2 diffs)
-
trunk/vendor/composer/installed.json (modified) (2 diffs)
-
trunk/vendor/league/oauth2-facebook/composer.json (modified) (1 diff)
-
trunk/vendor/paragonie/random_compat/build-phar.sh (added)
-
trunk/vendor/paragonie/random_compat/composer.json (modified) (1 diff)
-
trunk/vendor/paragonie/random_compat/lib/byte_safe_strings.php (deleted)
-
trunk/vendor/paragonie/random_compat/lib/cast_to_int.php (deleted)
-
trunk/vendor/paragonie/random_compat/lib/error_polyfill.php (deleted)
-
trunk/vendor/paragonie/random_compat/lib/random.php (modified) (2 diffs)
-
trunk/vendor/paragonie/random_compat/lib/random_bytes_com_dotnet.php (deleted)
-
trunk/vendor/paragonie/random_compat/lib/random_bytes_dev_urandom.php (deleted)
-
trunk/vendor/paragonie/random_compat/lib/random_bytes_libsodium.php (deleted)
-
trunk/vendor/paragonie/random_compat/lib/random_bytes_libsodium_legacy.php (deleted)
-
trunk/vendor/paragonie/random_compat/lib/random_bytes_mcrypt.php (deleted)
-
trunk/vendor/paragonie/random_compat/lib/random_int.php (deleted)
-
trunk/vendor/paragonie/random_compat/other (added)
-
trunk/vendor/paragonie/random_compat/other/build_phar.php (added)
-
trunk/vendor/paragonie/random_compat/phpunit-autoload.php (deleted)
-
trunk/vendor/paragonie/random_compat/psalm-autoload.php (added)
-
trunk/vendor/paragonie/random_compat/psalm.xml (added)
Legend:
- Unmodified
- Added
- Removed
-
quick-login/trunk/composer.json
r2364279 r2474432 43 43 "config": { 44 44 "platform": { 45 "php": " 5.6"45 "php": "7.0" 46 46 } 47 47 } -
quick-login/trunk/composer.lock
r2458198 r2474432 5 5 "This file is @generated automatically" 6 6 ], 7 "content-hash": " c87557ab1f1f7bf3ca2b1f72efd60f7d",7 "content-hash": "5676bd0b974afc76d9ab69415c332275", 8 8 "packages": [ 9 9 { … … 520 520 { 521 521 "name": "league/oauth2-facebook", 522 "version": "2.0. 3",522 "version": "2.0.5", 523 523 "source": { 524 524 "type": "git", 525 525 "url": "https://github.com/thephpleague/oauth2-facebook.git", 526 "reference": " 093cf588b9d508ee426c71d6bc68f138fe914ddc"527 }, 528 "dist": { 529 "type": "zip", 530 "url": "https://api.github.com/repos/thephpleague/oauth2-facebook/zipball/ 093cf588b9d508ee426c71d6bc68f138fe914ddc",531 "reference": " 093cf588b9d508ee426c71d6bc68f138fe914ddc",526 "reference": "14cead7580cab8caace67f5a61ea5d2a8ff213eb" 527 }, 528 "dist": { 529 "type": "zip", 530 "url": "https://api.github.com/repos/thephpleague/oauth2-facebook/zipball/14cead7580cab8caace67f5a61ea5d2a8ff213eb", 531 "reference": "14cead7580cab8caace67f5a61ea5d2a8ff213eb", 532 532 "shasum": "" 533 533 }, 534 534 "require": { 535 535 "league/oauth2-client": "^2.0", 536 "php": "^5.6 || ^7.0 "536 "php": "^5.6 || ^7.0 || ^8.0" 537 537 }, 538 538 "require-dev": { 539 539 "ext-json": "*", 540 540 "mockery/mockery": "~1.3.0", 541 "phpunit/phpunit": "^ 5.7|^6.0",541 "phpunit/phpunit": "^9.4", 542 542 "squizlabs/php_codesniffer": "~3.0" 543 543 }, … … 568 568 "oauth2" 569 569 ], 570 "time": "202 0-10-01T15:22:47+00:00"570 "time": "2021-02-01T15:33:45+00:00" 571 571 }, 572 572 { … … 679 679 { 680 680 "name": "paragonie/random_compat", 681 "version": "v 2.0.19",681 "version": "v9.99.100", 682 682 "source": { 683 683 "type": "git", 684 684 "url": "https://github.com/paragonie/random_compat.git", 685 "reference": " 446fc9faa5c2a9ddf65eb7121c0af7e857295241"686 }, 687 "dist": { 688 "type": "zip", 689 "url": "https://api.github.com/repos/paragonie/random_compat/zipball/ 446fc9faa5c2a9ddf65eb7121c0af7e857295241",690 "reference": " 446fc9faa5c2a9ddf65eb7121c0af7e857295241",691 "shasum": "" 692 }, 693 "require": { 694 "php": ">= 5.2.0"685 "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a" 686 }, 687 "dist": { 688 "type": "zip", 689 "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a", 690 "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a", 691 "shasum": "" 692 }, 693 "require": { 694 "php": ">= 7" 695 695 }, 696 696 "require-dev": { 697 "phpunit/phpunit": "4.*|5.*" 697 "phpunit/phpunit": "4.*|5.*", 698 "vimeo/psalm": "^1" 698 699 }, 699 700 "suggest": { … … 701 702 }, 702 703 "type": "library", 703 "autoload": {704 "files": [705 "lib/random.php"706 ]707 },708 704 "notification-url": "https://packagist.org/downloads/", 709 705 "license": [ … … 724 720 "random" 725 721 ], 726 "time": "2020-10-15T 10:06:57+00:00"722 "time": "2020-10-15T08:29:30+00:00" 727 723 }, 728 724 { … … 1144 1140 "platform-dev": [], 1145 1141 "platform-overrides": { 1146 "php": " 5.6"1142 "php": "7.0" 1147 1143 }, 1148 1144 "plugin-api-version": "1.1.0" -
quick-login/trunk/quick-login.php
r2364279 r2474432 4 4 Plugin URI: https://layered.market/plugins/quick-login 5 5 Description: Enable secure login & registration with social accounts! Supports Twitter, Facebook, Google, WordPress.com, LinkedIn and Slack. 6 Version: 1.4. 36 Version: 1.4.5 7 7 Text Domain: quick-login 8 8 Author: Layered -
quick-login/trunk/readme.txt
r2458211 r2474432 2 2 Contributors: andreiigna 3 3 Tags: login, social login, twitter, google, facebook, linkedin, slack, oauth, register 4 Requires at least: 44 Requires at least: 5 5 5 Tested up to: 5.6 6 Requires PHP: 5.66 Requires PHP: 7.0 7 7 Stable tag: trunk 8 8 License: GPL-3.0-or-later … … 50 50 Newly created accounts are assigned the default User Role defined in WordPress Settings, usually the role being `Subscriber`. 51 51 52 > Be aware that Quick Social Login requires the PHP version to be at least 5.652 > Be aware that Quick Social Login requires the PHP version to be at least 7.0 53 53 54 54 == Frequently Asked Questions == … … 90 90 91 91 == Changelog == 92 93 = 1.4.5 - 14 February 2020 = 94 * Updated - Dependencies for OAuth code libraries and requirement for min PHP v7 95 * Removed - Logos from plugin icon 92 96 93 97 = 1.4.4 - 18 January 2020 = -
quick-login/trunk/vendor/composer/autoload_files.php
r2364279 r2474432 7 7 8 8 return array( 9 '5255c38a0faeba867671b61dfda6d864' => $vendorDir . '/paragonie/random_compat/lib/random.php',10 9 '7b11c4dc42b3b3023073cb14e519683c' => $vendorDir . '/ralouphie/getallheaders/src/getallheaders.php', 10 'e69f7f6ee287b969198c3c9d6777bd38' => $vendorDir . '/symfony/polyfill-intl-normalizer/bootstrap.php', 11 '023d27dca8066ef29e6739335ea73bad' => $vendorDir . '/symfony/polyfill-php70/bootstrap.php', 11 12 '25072dd6e2470089de65ae7bf11d3109' => $vendorDir . '/symfony/polyfill-php72/bootstrap.php', 12 '023d27dca8066ef29e6739335ea73bad' => $vendorDir . '/symfony/polyfill-php70/bootstrap.php',13 'e69f7f6ee287b969198c3c9d6777bd38' => $vendorDir . '/symfony/polyfill-intl-normalizer/bootstrap.php',14 13 'c964ee0ededf28c96ebd9db5099ef910' => $vendorDir . '/guzzlehttp/promises/src/functions_include.php', 15 14 'a0edc8309cc5e1d60e3047b5df6b7052' => $vendorDir . '/guzzlehttp/psr7/src/functions_include.php', -
quick-login/trunk/vendor/composer/autoload_psr4.php
r2458198 r2474432 12 12 'Symfony\\Polyfill\\Intl\\Idn\\' => array($vendorDir . '/symfony/polyfill-intl-idn'), 13 13 'Psr\\Http\\Message\\' => array($vendorDir . '/psr/http-message/src'), 14 'League\\OAuth2\\Client\\' => array($vendorDir . '/league/oauth2- google/src', $vendorDir . '/league/oauth2-linkedin/src', $vendorDir . '/league/oauth2-client/src', $vendorDir . '/league/oauth2-facebook/src'),14 'League\\OAuth2\\Client\\' => array($vendorDir . '/league/oauth2-client/src', $vendorDir . '/league/oauth2-google/src', $vendorDir . '/league/oauth2-linkedin/src', $vendorDir . '/league/oauth2-facebook/src'), 15 15 'League\\OAuth1\\' => array($vendorDir . '/league/oauth1-client/src'), 16 16 'Layered\\QuickLogin\\' => array($baseDir . '/src'), -
quick-login/trunk/vendor/composer/autoload_static.php
r2458198 r2474432 8 8 { 9 9 public static $files = array ( 10 '5255c38a0faeba867671b61dfda6d864' => __DIR__ . '/..' . '/paragonie/random_compat/lib/random.php',11 10 '7b11c4dc42b3b3023073cb14e519683c' => __DIR__ . '/..' . '/ralouphie/getallheaders/src/getallheaders.php', 11 'e69f7f6ee287b969198c3c9d6777bd38' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/bootstrap.php', 12 '023d27dca8066ef29e6739335ea73bad' => __DIR__ . '/..' . '/symfony/polyfill-php70/bootstrap.php', 12 13 '25072dd6e2470089de65ae7bf11d3109' => __DIR__ . '/..' . '/symfony/polyfill-php72/bootstrap.php', 13 '023d27dca8066ef29e6739335ea73bad' => __DIR__ . '/..' . '/symfony/polyfill-php70/bootstrap.php',14 'e69f7f6ee287b969198c3c9d6777bd38' => __DIR__ . '/..' . '/symfony/polyfill-intl-normalizer/bootstrap.php',15 14 'c964ee0ededf28c96ebd9db5099ef910' => __DIR__ . '/..' . '/guzzlehttp/promises/src/functions_include.php', 16 15 'a0edc8309cc5e1d60e3047b5df6b7052' => __DIR__ . '/..' . '/guzzlehttp/psr7/src/functions_include.php', … … 73 72 'League\\OAuth2\\Client\\' => 74 73 array ( 75 0 => __DIR__ . '/..' . '/league/oauth2- google/src',76 1 => __DIR__ . '/..' . '/league/oauth2- linkedin/src',77 2 => __DIR__ . '/..' . '/league/oauth2- client/src',74 0 => __DIR__ . '/..' . '/league/oauth2-client/src', 75 1 => __DIR__ . '/..' . '/league/oauth2-google/src', 76 2 => __DIR__ . '/..' . '/league/oauth2-linkedin/src', 78 77 3 => __DIR__ . '/..' . '/league/oauth2-facebook/src', 79 78 ), -
quick-login/trunk/vendor/composer/installed.json
r2458198 r2474432 527 527 { 528 528 "name": "league/oauth2-facebook", 529 "version": "2.0. 3",530 "version_normalized": "2.0. 3.0",529 "version": "2.0.5", 530 "version_normalized": "2.0.5.0", 531 531 "source": { 532 532 "type": "git", 533 533 "url": "https://github.com/thephpleague/oauth2-facebook.git", 534 "reference": " 093cf588b9d508ee426c71d6bc68f138fe914ddc"535 }, 536 "dist": { 537 "type": "zip", 538 "url": "https://api.github.com/repos/thephpleague/oauth2-facebook/zipball/ 093cf588b9d508ee426c71d6bc68f138fe914ddc",539 "reference": " 093cf588b9d508ee426c71d6bc68f138fe914ddc",534 "reference": "14cead7580cab8caace67f5a61ea5d2a8ff213eb" 535 }, 536 "dist": { 537 "type": "zip", 538 "url": "https://api.github.com/repos/thephpleague/oauth2-facebook/zipball/14cead7580cab8caace67f5a61ea5d2a8ff213eb", 539 "reference": "14cead7580cab8caace67f5a61ea5d2a8ff213eb", 540 540 "shasum": "" 541 541 }, 542 542 "require": { 543 543 "league/oauth2-client": "^2.0", 544 "php": "^5.6 || ^7.0 "544 "php": "^5.6 || ^7.0 || ^8.0" 545 545 }, 546 546 "require-dev": { 547 547 "ext-json": "*", 548 548 "mockery/mockery": "~1.3.0", 549 "phpunit/phpunit": "^ 5.7|^6.0",549 "phpunit/phpunit": "^9.4", 550 550 "squizlabs/php_codesniffer": "~3.0" 551 551 }, 552 "time": "202 0-10-01T15:22:47+00:00",552 "time": "2021-02-01T15:33:45+00:00", 553 553 "type": "library", 554 554 "installation-source": "dist", … … 692 692 { 693 693 "name": "paragonie/random_compat", 694 "version": "v 2.0.19",695 "version_normalized": " 2.0.19.0",694 "version": "v9.99.100", 695 "version_normalized": "9.99.100.0", 696 696 "source": { 697 697 "type": "git", 698 698 "url": "https://github.com/paragonie/random_compat.git", 699 "reference": " 446fc9faa5c2a9ddf65eb7121c0af7e857295241"700 }, 701 "dist": { 702 "type": "zip", 703 "url": "https://api.github.com/repos/paragonie/random_compat/zipball/ 446fc9faa5c2a9ddf65eb7121c0af7e857295241",704 "reference": " 446fc9faa5c2a9ddf65eb7121c0af7e857295241",705 "shasum": "" 706 }, 707 "require": { 708 "php": ">= 5.2.0"699 "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a" 700 }, 701 "dist": { 702 "type": "zip", 703 "url": "https://api.github.com/repos/paragonie/random_compat/zipball/996434e5492cb4c3edcb9168db6fbb1359ef965a", 704 "reference": "996434e5492cb4c3edcb9168db6fbb1359ef965a", 705 "shasum": "" 706 }, 707 "require": { 708 "php": ">= 7" 709 709 }, 710 710 "require-dev": { 711 "phpunit/phpunit": "4.*|5.*" 711 "phpunit/phpunit": "4.*|5.*", 712 "vimeo/psalm": "^1" 712 713 }, 713 714 "suggest": { 714 715 "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." 715 716 }, 716 "time": "2020-10-15T10:06:57+00:00", 717 "type": "library", 718 "installation-source": "dist", 719 "autoload": { 720 "files": [ 721 "lib/random.php" 722 ] 723 }, 717 "time": "2020-10-15T08:29:30+00:00", 718 "type": "library", 719 "installation-source": "dist", 724 720 "notification-url": "https://packagist.org/downloads/", 725 721 "license": [ -
quick-login/trunk/vendor/league/oauth2-facebook/composer.json
r2364279 r2474432 19 19 ], 20 20 "require": { 21 "php": "^5.6 || ^7.0 ",21 "php": "^5.6 || ^7.0 || ^8.0", 22 22 "league/oauth2-client": "^2.0" 23 23 }, 24 24 "require-dev": { 25 25 "ext-json": "*", 26 "phpunit/phpunit": "^ 5.7|^6.0",26 "phpunit/phpunit": "^9.4", 27 27 "mockery/mockery": "~1.3.0", 28 28 "squizlabs/php_codesniffer": "~3.0" -
quick-login/trunk/vendor/paragonie/random_compat/composer.json
r2364279 r2474432 23 23 }, 24 24 "require": { 25 "php": ">= 5.2.0"25 "php": ">= 7" 26 26 }, 27 27 "require-dev": { 28 "vimeo/psalm": "^1", 28 29 "phpunit/phpunit": "4.*|5.*" 29 30 }, 30 31 "suggest": { 31 32 "ext-libsodium": "Provides a modern crypto API that can be used to generate random bytes." 32 },33 "autoload": {34 "files": [35 "lib/random.php"36 ]37 33 } 38 34 } -
quick-login/trunk/vendor/paragonie/random_compat/lib/random.php
r2364279 r2474432 4 4 * for using the new PHP 7 random_* API in PHP 5 projects 5 5 * 6 * @version 2. 0.177 * @released 2018-0 7-046 * @version 2.99.99 7 * @released 2018-06-06 8 8 * 9 9 * The MIT License (MIT) … … 30 30 */ 31 31 32 if (!defined('PHP_VERSION_ID')) { 33 // This constant was introduced in PHP 5.2.7 34 $RandomCompatversion = array_map('intval', explode('.', PHP_VERSION)); 35 define( 36 'PHP_VERSION_ID', 37 $RandomCompatversion[0] * 10000 38 + $RandomCompatversion[1] * 100 39 + $RandomCompatversion[2] 40 ); 41 $RandomCompatversion = null; 42 } 43 44 /** 45 * PHP 7.0.0 and newer have these functions natively. 46 */ 47 if (PHP_VERSION_ID >= 70000) { 48 return; 49 } 50 51 if (!defined('RANDOM_COMPAT_READ_BUFFER')) { 52 define('RANDOM_COMPAT_READ_BUFFER', 8); 53 } 54 55 $RandomCompatDIR = dirname(__FILE__); 56 57 require_once $RandomCompatDIR . DIRECTORY_SEPARATOR . 'byte_safe_strings.php'; 58 require_once $RandomCompatDIR . DIRECTORY_SEPARATOR . 'cast_to_int.php'; 59 require_once $RandomCompatDIR . DIRECTORY_SEPARATOR . 'error_polyfill.php'; 60 61 if (!is_callable('random_bytes')) { 62 /** 63 * PHP 5.2.0 - 5.6.x way to implement random_bytes() 64 * 65 * We use conditional statements here to define the function in accordance 66 * to the operating environment. It's a micro-optimization. 67 * 68 * In order of preference: 69 * 1. Use libsodium if available. 70 * 2. fread() /dev/urandom if available (never on Windows) 71 * 3. mcrypt_create_iv($bytes, MCRYPT_DEV_URANDOM) 72 * 4. COM('CAPICOM.Utilities.1')->GetRandom() 73 * 74 * See RATIONALE.md for our reasoning behind this particular order 75 */ 76 if (extension_loaded('libsodium')) { 77 // See random_bytes_libsodium.php 78 if (PHP_VERSION_ID >= 50300 && is_callable('\\Sodium\\randombytes_buf')) { 79 require_once $RandomCompatDIR . DIRECTORY_SEPARATOR . 'random_bytes_libsodium.php'; 80 } elseif (method_exists('Sodium', 'randombytes_buf')) { 81 require_once $RandomCompatDIR . DIRECTORY_SEPARATOR . 'random_bytes_libsodium_legacy.php'; 82 } 83 } 84 85 /** 86 * Reading directly from /dev/urandom: 87 */ 88 if (DIRECTORY_SEPARATOR === '/') { 89 // DIRECTORY_SEPARATOR === '/' on Unix-like OSes -- this is a fast 90 // way to exclude Windows. 91 $RandomCompatUrandom = true; 92 $RandomCompat_basedir = ini_get('open_basedir'); 93 94 if (!empty($RandomCompat_basedir)) { 95 $RandomCompat_open_basedir = explode( 96 PATH_SEPARATOR, 97 strtolower($RandomCompat_basedir) 98 ); 99 $RandomCompatUrandom = (array() !== array_intersect( 100 array('/dev', '/dev/', '/dev/urandom'), 101 $RandomCompat_open_basedir 102 )); 103 $RandomCompat_open_basedir = null; 104 } 105 106 if ( 107 !is_callable('random_bytes') 108 && 109 $RandomCompatUrandom 110 && 111 @is_readable('/dev/urandom') 112 ) { 113 // Error suppression on is_readable() in case of an open_basedir 114 // or safe_mode failure. All we care about is whether or not we 115 // can read it at this point. If the PHP environment is going to 116 // panic over trying to see if the file can be read in the first 117 // place, that is not helpful to us here. 118 119 // See random_bytes_dev_urandom.php 120 require_once $RandomCompatDIR . DIRECTORY_SEPARATOR . 'random_bytes_dev_urandom.php'; 121 } 122 // Unset variables after use 123 $RandomCompat_basedir = null; 124 } else { 125 $RandomCompatUrandom = false; 126 } 127 128 /** 129 * mcrypt_create_iv() 130 * 131 * We only want to use mcypt_create_iv() if: 132 * 133 * - random_bytes() hasn't already been defined 134 * - the mcrypt extensions is loaded 135 * - One of these two conditions is true: 136 * - We're on Windows (DIRECTORY_SEPARATOR !== '/') 137 * - We're not on Windows and /dev/urandom is readabale 138 * (i.e. we're not in a chroot jail) 139 * - Special case: 140 * - If we're not on Windows, but the PHP version is between 141 * 5.6.10 and 5.6.12, we don't want to use mcrypt. It will 142 * hang indefinitely. This is bad. 143 * - If we're on Windows, we want to use PHP >= 5.3.7 or else 144 * we get insufficient entropy errors. 145 */ 146 if ( 147 !is_callable('random_bytes') 148 && 149 // Windows on PHP < 5.3.7 is broken, but non-Windows is not known to be. 150 (DIRECTORY_SEPARATOR === '/' || PHP_VERSION_ID >= 50307) 151 && 152 // Prevent this code from hanging indefinitely on non-Windows; 153 // see https://bugs.php.net/bug.php?id=69833 154 ( 155 DIRECTORY_SEPARATOR !== '/' || 156 (PHP_VERSION_ID <= 50609 || PHP_VERSION_ID >= 50613) 157 ) 158 && 159 extension_loaded('mcrypt') 160 ) { 161 // See random_bytes_mcrypt.php 162 require_once $RandomCompatDIR . DIRECTORY_SEPARATOR . 'random_bytes_mcrypt.php'; 163 } 164 $RandomCompatUrandom = null; 165 166 /** 167 * This is a Windows-specific fallback, for when the mcrypt extension 168 * isn't loaded. 169 */ 170 if ( 171 !is_callable('random_bytes') 172 && 173 extension_loaded('com_dotnet') 174 && 175 class_exists('COM') 176 ) { 177 $RandomCompat_disabled_classes = preg_split( 178 '#\s*,\s*#', 179 strtolower(ini_get('disable_classes')) 180 ); 181 182 if (!in_array('com', $RandomCompat_disabled_classes)) { 183 try { 184 $RandomCompatCOMtest = new COM('CAPICOM.Utilities.1'); 185 if (method_exists($RandomCompatCOMtest, 'GetRandom')) { 186 // See random_bytes_com_dotnet.php 187 require_once $RandomCompatDIR . DIRECTORY_SEPARATOR . 'random_bytes_com_dotnet.php'; 188 } 189 } catch (com_exception $e) { 190 // Don't try to use it. 191 } 192 } 193 $RandomCompat_disabled_classes = null; 194 $RandomCompatCOMtest = null; 195 } 196 197 /** 198 * throw new Exception 199 */ 200 if (!is_callable('random_bytes')) { 201 /** 202 * We don't have any more options, so let's throw an exception right now 203 * and hope the developer won't let it fail silently. 204 * 205 * @param mixed $length 206 * @psalm-suppress InvalidReturnType 207 * @throws Exception 208 * @return string 209 */ 210 function random_bytes($length) 211 { 212 unset($length); // Suppress "variable not used" warnings. 213 throw new Exception( 214 'There is no suitable CSPRNG installed on your system' 215 ); 216 return ''; 217 } 218 } 219 } 220 221 if (!is_callable('random_int')) { 222 require_once $RandomCompatDIR . DIRECTORY_SEPARATOR . 'random_int.php'; 223 } 224 225 $RandomCompatDIR = null; 32 // NOP
Note: See TracChangeset
for help on using the changeset viewer.