mirror of
https://github.com/phpseclib/phpseclib.git
synced 2025-02-14 01:30:20 +00:00
X509: update disable/enableURLFetch to work with 2.0 branch
This commit is contained in:
parent
e3a1e47824
commit
fc90c58f7f
@ -319,7 +319,7 @@ class X509
|
|||||||
* @var bool
|
* @var bool
|
||||||
* @access private
|
* @access private
|
||||||
*/
|
*/
|
||||||
var $disable_url_fetch = false;
|
static $disable_url_fetch = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Default Constructor.
|
* Default Constructor.
|
||||||
@ -2129,7 +2129,7 @@ class X509
|
|||||||
*/
|
*/
|
||||||
static function _fetchURL($url)
|
static function _fetchURL($url)
|
||||||
{
|
{
|
||||||
if ($this->disable_url_fetch) {
|
if (self::$disable_url_fetch) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2446,9 +2446,9 @@ class X509
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function disableURLFetch()
|
static function disableURLFetch()
|
||||||
{
|
{
|
||||||
$this->disable_url_fetch = true;
|
self::$disable_url_fetch = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -2456,9 +2456,9 @@ class X509
|
|||||||
*
|
*
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function enableURLFetch()
|
static function enableURLFetch()
|
||||||
{
|
{
|
||||||
$this->disable_url_fetch = false;
|
self::$disable_url_fetch = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user