Branch: Tag:

2002-12-04

2002-12-04 15:29:30 by Marcus Wellhardh <wellhard@roxen.com>

Fixed [Bug 3325 (#3325)]. Fixed quoting problem for ImageCache::flush().

Rev: server/base_server/roxen.pike:1.815

6:   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.814 2002/11/25 10:34:31 anders Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.815 2002/12/04 15:29:30 wellhard Exp $";      // The argument cache. Used by the image cache.   ArgCache argcache;
2902:       int q;    while(q<sizeof(ids)) { -  string list = ids[q..q+99] * "','"; +  string list = map(ids[q..q+99], get_db()->quote) * "','";    q+=100;    QUERY( "DELETE FROM "+name+" WHERE id in ('"+list+"')" );    }