Skip to content

Commit

Permalink
quote client-specified strings for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxKellermann committed Apr 15, 2024
1 parent cadeb28 commit a11a1ab
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cm4all-myproxy (0.17) unstable; urgency=low

*
* quote client-specified strings for logging

--

Expand Down
4 changes: 2 additions & 2 deletions src/Connection.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ Connection::OnHandshakeResponse(uint_least8_t sequence_id,

incoming.capabilities &= packet.capabilities;

fmt::print("[{}] login user='{}' database='{}'\n", GetName(), packet.user, packet.database);
fmt::print("[{}] login user={:?} database={:?}\n", GetName(), packet.user, packet.database);

user = packet.user;
auth_response = packet.auth_response;
Expand Down Expand Up @@ -393,7 +393,7 @@ Connection::Outgoing::OnHandshake(uint_least8_t sequence_id,

peer.capabilities = packet.capabilities & connection.incoming.capabilities;

fmt::print("[{}] handshake server_version='{}'\n",
fmt::print("[{}] handshake server_version={:?}\n",
connection.GetName(), packet.server_version);

auth_handler = Mysql::MakeAuthHandler(packet.auth_plugin_name, false);
Expand Down

0 comments on commit a11a1ab

Please sign in to comment.