--- loncom/homework/default_homework.lcpm 2003/04/30 21:10:50 1.61 +++ loncom/homework/default_homework.lcpm 2003/05/23 07:04:44 1.62 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # used by lonxml::xmlparse() as input variable $safeinit to Apache::run::run() # -# $Id: default_homework.lcpm,v 1.61 2003/04/30 21:10:50 albertel Exp $ +# $Id: default_homework.lcpm,v 1.62 2003/05/23 07:04:44 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -62,6 +62,8 @@ sub caparesponse_check { $message .="no ws in :$response:\n"; } + if (length($response) > 500) { return "TOO_LONG: Answer too long"; } + if ($type eq '' ) { $message .= "Didn't find a type :$type:$expr: defaulting\n"; if ( $answer eq ($answer *1.0)) { $type = 2;