Closed freddyb closed 4 years ago
The spaces are normally already stripped
Do you think this could be a problem with the logging then? The warning comes from Slim::Utils::Misc::msg, not from the Plugin directly, right? Would be odd that it gets an incorrect URL though.
Anything I could do to help figure this out? Any ideas?
I looked at the youtube.prefs file. It did indeed have a space character in front of the key. I edited the file, removed the space, restarted the server, and the problem was gone.
You're correct. I was trimming the spaces of the APIKey, but I forgot to add the prefix to the pre-defined prefs variables in the Settings framework, so I was trimming nothing
First of all, thank you for working on this plugin. It's super useful :-)
I see connection failures in my server log and it seems as if the API key contains whitespaces that would ideally be stripped by the plugin. Looking back at the plugin settings it actually looks as though I did not even enter whitespace in the first place - which is slightly odd.
Anyhow, I am wondering if it would make sense to strip the api either when receiving it from the input form or in line 153 where the error shows up (see below).