1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-11-27 04:34:45 +01:00

X509: update disable/enableURLFetch to work with 2.0 branch

This commit is contained in:
terrafrost 2018-03-03 13:44:11 -06:00
parent e3a1e47824
commit fc90c58f7f

View File

@ -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;
}
/**