Branch: Tag:

2000-11-10

2000-11-10 23:11:59 by Per Hedbor <ph@opera.com>

Fixed [Bug 564 (#564)]. The error was not actually that the variables was not checked, rather, the checked value was not used.

Rev: server/etc/modules/Variable.pmod/module.pmod:1.30

1: - // $Id: module.pmod,v 1.29 2000/11/02 11:41:03 per Exp $ + // $Id: module.pmod,v 1.30 2000/11/10 23:11:59 per Exp $      #include <module.h>   #include <roxen.h>
884:   class List   //! Many of one type types   { -  inherit String; +  inherit Variable;    constant type="List";    constant width = 40;   
964:    id->misc->defines[ " _error" ] = 302;    }    } -  set( l ); // We are done. :-) +  +  array b; +  mixed q = catch( b = verify_set_from_form( l ) ); +  if( q || sizeof( b ) != 2 ) +  { +  if( q ) +  set_warning( q ); +  else +  set_warning( "Internal error: Illegal sized array " +  "from verify_set_from_form\n" ); +  return;    } -  +  if( b ) +  { +  set_warning( b[0] ); +  set( b[1] ); +  } +  }       string render_form( RequestID id, void|mapping additional_args )    {