Branch: Tag:

2006-04-19

2006-04-19 16:40:29 by Marcus Wellhardh <wellhard@roxen.com>

Fixed bug in PrefLanguages. If the browsers sends a well crafted accept-header (";q=0.5") an error could happen

Rev: server/base_server/prototypes.pike:1.165

6:   #include <module.h>   #include <variables.h>   #include <module_constants.h> - constant cvs_version="$Id: prototypes.pike,v 1.164 2006/01/11 06:29:36 mast Exp $"; + constant cvs_version="$Id: prototypes.pike,v 1.165 2006/04/19 16:40:29 wellhard Exp $";      #ifdef DAV_DEBUG   #define DAV_WERROR(X...) werror(X)
654:    sscanf(lower_case(x), "%s;q=%f", x, n);    if(n==0.0) return "";    sscanf(x, "%s-%s", x, sub); +  if(x == "" ) return "";    q+=({n});    u+=({sub});    return x;