Notepad++: override user agent string

This commit is contained in:
Steffen Lange 2026-02-20 12:00:53 +01:00
parent b021c733c7
commit c93aa8c069

View file

@ -5,7 +5,7 @@ class NotepadPP extends PatchBase {
parent::__construct('Don Ho', 'Notepad++', 'https://notepad-plus-plus.org/downloads/');
}
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 false;
}