pike.git / lib / modules / Search.pmod / Query.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Query.pmod:1:         // This file is part of Roxen Search   // Copyright © 2001 Roxen IS. All rights reserved.   // - // $Id: Query.pmod,v 1.28 2004/08/19 13:13:24 noring Exp $ + // $Id: Query.pmod,v 1.29 2004/08/19 14:46:43 noring Exp $      static function(string,int:string) blobfeeder(Search.Database.Base db,    array words)   {    mapping state = mkmapping(words,allocate(sizeof(words)));    mapping(string:mapping(int:string)) blobcache = ([ ]);    return lambda( string word, int foo )    {    return db->get_blob(word, state[word]++, blobcache);    };
pike.git/lib/modules/Search.pmod/Query.pmod:210:    t_high = month->next()->unix_time()-1;    };    // Fix to allow year "%04d" timerange.    if(!t_low && sscanf(q->date, "%4d", int y))    catch {    Calendar.ISO.Year year = Calendar.ISO.Year(y);    t_low = year->unix_time();    t_high = year->next()->unix_time()-1;    };    -  if(!t_low || !t_high) +  if(t_low <= 0 || t_high <= 0 || +  object_program(t_low) || object_program(t_high)) +  // Guard against out-of-bounds and bignums.    {    push(_WhiteFish.DateSet());    break;    }       _WhiteFish.DateSet restriction;    switch(q->operator[1])    {    case "=":    restriction =