Branch: Tag:

2008-08-12

2008-08-12 07:09:03 by Stephen R. van den Berg <srb@cuci.nl>

pgsql String.secure needs a real string

Rev: lib/modules/Sql.pmod/pgsql.pike:1.27
Rev: lib/modules/Sql.pmod/pgsqls.pike:1.6

17:   protected void create(void|string _host, void|string _db,    void|string _user, void|string _pass, void|mapping(string:mixed) _options) {    string pass; -  pass = _pass; _pass = "CENSORED"; String.secure(pass); +  pass = _pass; _pass = "CENSORED"; +  if(pass) +  String.secure(pass);    if(!_options)    _options = ([]);