--- loncom/publisher/lonretrieve.pm 2006/11/10 18:01:08 1.33 +++ loncom/publisher/lonretrieve.pm 2006/12/06 22:22:39 1.34 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Handler to retrieve an old version of a file # -# $Id: lonretrieve.pm,v 1.33 2006/11/10 18:01:08 albertel Exp $ +# $Id: lonretrieve.pm,v 1.34 2006/12/06 22:22:39 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -38,6 +38,7 @@ use Apache::loncacc; use Apache::loncommon(); use Apache::lonlocal; use Apache::lonnet; +use LONCAPA(); # ------------------------------------ Interface for selecting previous version sub phaseone { @@ -242,7 +243,7 @@ sub handler { return HTTP_NOT_ACCEPTABLE; } - $fn=~s/\/\~(\w+)//; + $fn=~s{/~($LONCAPA::username_re)}{}; &Apache::loncommon::content_type($r,'text/html'); $r->send_http_header;