--- loncom/publisher/loncfile.pm 2005/05/25 22:27:17 1.68 +++ loncom/publisher/loncfile.pm 2005/05/30 16:56:46 1.69 @@ -9,7 +9,7 @@ # and displays a page showing the results of the action. # # -# $Id: loncfile.pm,v 1.68 2005/05/25 22:27:17 albertel Exp $ +# $Id: loncfile.pm,v 1.69 2005/05/30 16:56:46 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -710,7 +710,13 @@ sub NewFile1 { ##Informs User (name).(number).(extension) not allowed if($newfilename =~ /\.(\d+)\.(\w+)$/){ $r->print(''.$newfilename. - ' - '.&mt('Bad Filename').'
('.&mt('name').').('.&mt('number').').('.&mt('extension').')'. + ' - '.&mt('Bad Filename').'
('.&mt('name').').('.&mt('number').').('.&mt('extension').') '. + ' '.&mt('Not Allowed').'
'); + return; + } + if($newfilename =~ /(\:\:\:|\&\&\&|\_\_\_)/){ + $r->print(''.$newfilename. + ' - '.&mt('Bad Filename').'
('.&mt('Must not include').' '.$1.') '. ' '.&mt('Not Allowed').'
'); return; }