mirror of
https://github.com/opnsense/plugins.git
synced 2026-02-18 18:19:25 -05:00
Fix: Strip whitespace from API token to prevent 401 authentication errors (#5203)
This commit is contained in:
parent
59d158e93a
commit
f64be105b0
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ class QFeedsConfig:
|
|||
cnf = ConfigParser()
|
||||
cnf.read(config_filename)
|
||||
if cnf.has_section('api') and cnf.has_option('api', 'key'):
|
||||
self.api_key = cnf.get('api', 'key')
|
||||
self.api_key = cnf.get('api', 'key').strip()
|
||||
|
||||
|
||||
class Api:
|
||||
|
|
|
|||
Loading…
Reference in a new issue