Branch: Tag:

2008-01-09

2008-01-09 14:26:07 by Martin Stjernholm <mast@lysator.liu.se>

Censor passwords in arguments so that they don't get printed by
describe_backtrace.

Rev: lib/modules/Sql.pmod/Sql.pike:1.90
Rev: lib/modules/Sql.pmod/mysql.pike:1.40
Rev: lib/modules/Sql.pmod/postgres.pike:1.27
Rev: lib/modules/Sql.pmod/rsql.pike:1.12
Rev: lib/modules/Sql.pmod/sybase.pike:1.11

2:    * Sybase driver for the Pike programming language.    * By Francesco Chemolli <kinkie@roxen.com> 10/12/1999    * -  * $Id: sybase.pike,v 1.10 2004/04/16 12:12:46 grubba Exp $ +  * $Id: sybase.pike,v 1.11 2008/01/09 14:26:07 mast Exp $    *    */   
91:   }      void create(void|string host, void|string db, void|string user, -  void|string pass) { +  void|string _pass) { +  string pass = _pass; +  _pass = "CENSORED";    mo::create(host||"",db||"",user||"",pass||"");    if (db && stringp(db) && sizeof(db)) {    mo::big_query("use "+db);