mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 01:55:21 +02:00
feat: extract curl ua to config value (#2568)
* exclude config.default.ini.php from phpcs
This commit is contained in:
parent
42788cd3ee
commit
bed20e9f28
9 changed files with 9 additions and 21 deletions
10
index.php
10
index.php
|
@ -17,16 +17,6 @@ if (isset($argv)) {
|
|||
$params = $_GET;
|
||||
}
|
||||
|
||||
define('USER_AGENT',
|
||||
'Mozilla/5.0 (X11; Linux x86_64; rv:72.0) Gecko/20100101 Firefox/72.0(rss-bridge/'
|
||||
. Configuration::$VERSION
|
||||
. ';+'
|
||||
. REPOSITORY
|
||||
. ')'
|
||||
);
|
||||
|
||||
ini_set('user_agent', USER_AGENT);
|
||||
|
||||
try {
|
||||
|
||||
$actionFac = new \ActionFactory();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue