Branch: Tag:

2006-12-11

2006-12-11 17:25:13 by Martin Stjernholm <mast@lysator.liu.se>

Fixed many _sprintf's to only return a debug description when given
the 'O' flag, as they should.

Rev: server/etc/modules/RXML.pmod/refs.pmod:1.13
Rev: server/etc/modules/Roxen.pmod:1.222
Rev: server/modules/configuration/config_tags.pike:1.193
Rev: server/modules/database/sqltag.pike:1.108

1:   // This is a roxen pike module. Copyright © 1999 - 2004, Roxen IS.   // - // $Id: Roxen.pmod,v 1.221 2006/11/13 12:26:55 jonasw Exp $ + // $Id: Roxen.pmod,v 1.222 2006/12/11 17:23:53 mast Exp $      #include <roxen.h>   #include <config.h>
144:    }    string _sprintf(int c)    { -  return sprintf("CookieChecker(%O)", cookie); +  return c == 'O' && sprintf("CookieChecker(%O)", cookie);    }   }   function(string, RequestID:string) get_cookie_callback(string cookie)
3546:    return values((c || RXML_CONTEXT)->id->request_headers);    }    -  string _sprintf() { return "RXML.Scope(request-header)"; } +  string _sprintf (int flag) +  { +  return flag == 'O' && "RXML.Scope(request-header)";    } -  + }      class ScopeRoxen {    inherit RXML.Scope;
3683:    predef::m_delete(c->misc->scope_roxen, var);    }    -  string _sprintf() { return "RXML.Scope(roxen)"; } +  string _sprintf (int flag) { return flag == 'O' && "RXML.Scope(roxen)"; }   }      class ScopePage {
3776:    predef::m_delete(c->misc->scope_page, var);    }    -  string _sprintf() { return "RXML.Scope(page)"; } +  string _sprintf (int flag) { return flag == 'O' && "RXML.Scope(page)"; }   }      class ScopeCookie {
3821:    http_encode_cookie(var)+"=; expires=Thu, 01-Jan-70 00:00:01 GMT; path=/");    }    -  string _sprintf() { return "RXML.Scope(Cookie)"; } +  string _sprintf (int flag) { return flag == 'O' && "RXML.Scope(Cookie)"; }   }      RXML.Scope scope_request_header=ScopeRequestHeader();