Skip to content
Snippets Groups Projects
Commit 083eb10a authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Partial revert with explanatory note.

Rev: lib/modules/Sql.pmod/Sql.pike:1.91
parent 7073f04d
No related branches found
No related tags found
No related merge requests found
/* /*
* $Id: Sql.pike,v 1.90 2008/01/09 14:26:07 mast Exp $ * $Id: Sql.pike,v 1.91 2008/01/09 16:32:13 grubba Exp $
* *
* Implements the generic parts of the SQL-interface * Implements the generic parts of the SQL-interface
* *
...@@ -170,12 +170,12 @@ static program find_dbm(string program_name) { ...@@ -170,12 +170,12 @@ static program find_dbm(string program_name) {
//! @note //! @note
//! Support for @[options] was added in Pike 7.3. //! Support for @[options] was added in Pike 7.3.
//! //!
void create(string|object _host, void|string|mapping(string:int|string) db, void create(string|object host, void|string|mapping(string:int|string) db,
void|string user, void|string _password, void|string user, void|string _password,
void|mapping(string:int|string) options) void|mapping(string:int|string) options)
{ {
// _host is censored only if we pick out a password from it below. // Note: No need to censor host here, since it is rewritten below if
void|string|object host = _host; // it contains an SQL-URL.
string password = _password; string password = _password;
_password = "CENSORED"; _password = "CENSORED";
...@@ -235,8 +235,6 @@ void create(string|object _host, void|string|mapping(string:int|string) db, ...@@ -235,8 +235,6 @@ void create(string|object _host, void|string|mapping(string:int|string) db,
if (password == "") { if (password == "") {
password = 0; password = 0;
} }
else
_host = "CENSORED";
} }
} }
arr = host/"/"; arr = host/"/";
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment