Branch: Tag:

2006-10-05

2006-10-05 09:02:25 by Jonas Wallden <jonasw@roxen.com>

Fix [bug 4246 (#4246)] where <cimg> and <emit#cimg> allowed empty src attribute,
thereby requesting the directory's index file instead.

Rev: server/modules/graphics/cimg.pike:1.74

7:      roxen.ImageCache the_cache;    - constant cvs_version = "$Id: cimg.pike,v 1.73 2005/12/16 17:50:52 jonasw Exp $"; + constant cvs_version = "$Id: cimg.pike,v 1.74 2006/10/05 09:02:25 jonasw Exp $";   constant module_type = MODULE_TAG;   constant module_name = "Graphics: Image converter";   constant module_doc = "Provides the tag <tt>&lt;cimg&gt;</tt> that can be used "
337:    args->format = "png";    if( !(args->src || args->data) )    RXML.parse_error("Required attribute 'src' or 'data' missing\n"); +  if (args->src == "") +  RXML.parse_error("Attribute 'src' cannot be empty\n");    if( args->src && args->data )    RXML.parse_error("Only one of 'src' and 'data' may be specified\n");