Unverified Commit 16b46288 authored by Brian May's avatar Brian May Committed by GitHub

Merge pull request #460 from alekseymykhailov/fix_connection

fix connection with @ sign in username
parents 7d998f6d 500aa656
......@@ -76,9 +76,8 @@ def parse_hostport(rhostport):
if "@" in host:
# split username (and possible password) from the host[:port]
username, host = host.split("@")
username, host = host.rsplit("@", 1)
# Fix #410 bad username error detect
# username cannot contain an @ sign in this scenario
if ":" in username:
# this will even allow for the username to be empty
username, password = username.split(":")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment