Notepad++: override user agent string
This commit is contained in:
parent
b021c733c7
commit
c93aa8c069
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ class NotepadPP extends PatchBase {
|
||||||
parent::__construct('Don Ho', 'Notepad++', 'https://notepad-plus-plus.org/downloads/');
|
parent::__construct('Don Ho', 'Notepad++', 'https://notepad-plus-plus.org/downloads/');
|
||||||
}
|
}
|
||||||
function check() : bool {
|
function check() : bool {
|
||||||
if ($this->fetch('https://notepad-plus-plus.org/'))
|
if ($this->fetch('https://notepad-plus-plus.org/', array('CURLOPT_USERAGENT' => 'curl/8.9.1')))
|
||||||
return $this->parse('/<strong>Current Version ([\d\.]+)<\/strong>/');
|
return $this->parse('/<strong>Current Version ([\d\.]+)<\/strong>/');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue