Open rubdos opened 5 years ago
When using a password with characters such as : and @, weird errors are thrown (not finding hostname username), completely unrelated to the issue: the password contains characters that are not escaped in https://github.com/pdmangel/node-red-contrib-openhab2/blob/master/77-openhab2.js#L23
:
@
username
I'm very inexperienced with NodeJS, but I assume it has some functionality to do a proper basic auth, instead of hijacking the URL?
As a quick fix, version 1.1.7 of node-red-contrib-openhab2 now escapes special characters in username and password properly. Please feedback your test result in this thread.
When using a password with characters such as
:
and@
, weird errors are thrown (not finding hostnameusername
), completely unrelated to the issue: the password contains characters that are not escaped in https://github.com/pdmangel/node-red-contrib-openhab2/blob/master/77-openhab2.js#L23I'm very inexperienced with NodeJS, but I assume it has some functionality to do a proper basic auth, instead of hijacking the URL?