--- rat/lonwrapper.pm 2005/04/07 06:56:27 1.18 +++ rat/lonwrapper.pm 2006/02/10 21:44:02 1.19 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Wrapper for external and binary files as standalone resources # -# $Id: lonwrapper.pm,v 1.18 2005/04/07 06:56:27 albertel Exp $ +# $Id: lonwrapper.pm,v 1.19 2006/02/10 21:44:02 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -50,6 +50,7 @@ sub handler { $orgurl.=(($orgurl=~/\?/)?'&':'?').$ENV{'QUERY_STRING'}; $orgurl.=(($orgurl=~/\?/)?'&':'?').'wrapperdisplay=menu'; $url=~s/^\/adm\/wrapper//; + my $is_ext = $url =~ m|^/ext/|; $url=~s/^\/ext\//http\:\/\//; $url=~s|:|:|g; if ($env{'form.wrapperdisplay'} eq 'menu') { @@ -72,6 +73,9 @@ sub handler { # # This is not homework # + if ($is_ext) { + $ENV{'QUERY_STRING'}=~s/(^|\&)symb=[^\&]*/$1/; + } $url.=(($url=~/\?/)?'&':'?').$ENV{'QUERY_STRING'}; # reappend the query arguments my $events='onLoad="'.&Apache::lonmenu::loadevents.