mirror of
https://github.com/danog/phpseclib.git
synced 2024-11-27 12:55:58 +01: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
|
||||
* @access private
|
||||
*/
|
||||
var $disable_url_fetch = false;
|
||||
static $disable_url_fetch = false;
|
||||
|
||||
/**
|
||||
* Default Constructor.
|
||||
@ -2129,7 +2129,7 @@ class X509
|
||||
*/
|
||||
static function _fetchURL($url)
|
||||
{
|
||||
if ($this->disable_url_fetch) {
|
||||
if (self::$disable_url_fetch) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -2446,9 +2446,9 @@ class X509
|
||||
*
|
||||
* @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
|
||||
*/
|
||||
function enableURLFetch()
|
||||
static function enableURLFetch()
|
||||
{
|
||||
$this->disable_url_fetch = false;
|
||||
self::$disable_url_fetch = false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user