Branch: Tag:

2009-01-24

2009-01-24 16:51:22 by Stephen R. van den Berg <srb@cuci.nl>

Detect and complain about nul-characters in SQL-queries early.

Rev: lib/modules/Sql.pmod/pgsql.pike:1.49

1519:    }    else    paramValues = ({}); +  if(has_value(q,"\0")) +  ERROR("Querystring %O contains invalid literal nul-characters\n",q);    mapping(string:mixed) tp;    int tstart;    if(forcecache==1 || forcecache!=0 && sizeof(q)>=MINPREPARELENGTH) {