Branch: Tag:

2002-10-22

2002-10-22 00:26:22 by Martin Nilsson <mani@lysator.liu.se>

search -> has_value

Rev: server/modules/graphics/graphic_text.pike:1.292
Rev: server/modules/graphics/pimage.pike:1.30
Rev: server/modules/icecast/dir_playlist.pike:1.7
Rev: server/modules/misc/pathinfo.pike:1.18
Rev: server/modules/misc/randomtext.pike:1.9
Rev: server/modules/proxies/ftpgateway.pike:1.41
Rev: server/modules/proxies/proxy.pike:1.55
Rev: server/modules/proxies/wais.pike:1.27
Rev: server/modules/scripting/fpscript.pike:1.14
Rev: server/modules/scripting/piketag.pike:2.37
Rev: server/modules/tags/rxmltags.pike:1.382
Rev: server/plugins/protocols/prot_https.pike:2.6

7:   // return "Hello world!\n";   // </pike>    - constant cvs_version = "$Id: piketag.pike,v 2.36 2001/09/21 15:58:13 jhs Exp $"; + constant cvs_version = "$Id: piketag.pike,v 2.37 2002/10/22 00:21:29 nilsson Exp $";   constant thread_safe=1;      inherit "module";
456:   // Preamble   string pre(string what, object id)   { -  if(search(what, "parse(") != -1) +  if(has_value(what, "parse("))    return functions(id->not_query, id->misc->line); -  if(search(what, "return") != -1) +  if(has_value(what, "return"))    return functions(id->not_query, id->misc->line) +    "string|int parse(RequestID id, mapping defines, object file, mapping args) { ";    else
469:   // Will be added at the end...   string post(string what)   { -  if(search(what, "parse(") != -1) +  if(has_value(what, "parse("))    return "";    if (!strlen(what) || what[-1] != ';')    return ";}";