Branch: Tag:

2005-01-17

2005-01-17 14:54:27 by Jonas Wallden <jonasw@roxen.com>

Some instances of <cimg> RXML frames generated internally have integer
attributes instead of strings so we need to be more careful when comparing
string length.

Rev: server/base_server/roxen.pike:1.889

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.888 2004/12/21 17:39:03 mast Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.889 2005/01/17 14:54:27 jonasw Exp $";      //! @appears roxen   //!
2775:    }    };    -  if( sizeof(args->scale || "") ) +  if( sizeof((string) (args->scale || "")) )    {    int x, y;    if( sscanf( args->scale, "%d,%d", x, y ) == 2)
2786:    SCALEF|CROP );    }    else -  if( sizeof( args->maxwidth || args->maxheight || -  args["max-width"] || args["max-height"] || "") ) +  if( sizeof( (string) (args->maxwidth || args->maxheight || +  args["max-width"] || args["max-height"] || "")) )    {    int x = (int)args->maxwidth|| (int)args["max-width"];    int y = (int)args->maxheight||(int)args["max-height"];