Commit 6f2ee50e authored by Vincent Pelletier's avatar Vincent Pelletier

Explicit expected separator between database and unix_socket.

parent 59d142fd
......@@ -63,7 +63,7 @@ class MySQLDatabaseManager(DatabaseManager):
def _parse(self, database):
""" Get the database credentials (username, password, database) """
# expected pattern : [user[:password]@]database[unix_socket]
# expected pattern : [user[:password]@]database[(.|/)unix_socket]
self.user, self.passwd, self.db, self.socket = re.match(
'(?:([^:]+)(?::(.*))?@)?([^./]+)(.+)?$', database).groups()
......
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