[LON-CAPA-cvs] cvs: rat / lonwrapper.pm

raeburn raeburn@source.lon-capa.org
Wed, 21 Oct 2009 22:46:31 -0000


raeburn		Wed Oct 21 22:46:31 2009 EDT

  Modified files:              
    /rat	lonwrapper.pm 
  Log:
  - Some external web sites can't handle a trailing & in the query string.
  
  
Index: rat/lonwrapper.pm
diff -u rat/lonwrapper.pm:1.33 rat/lonwrapper.pm:1.34
--- rat/lonwrapper.pm:1.33	Wed May 27 16:55:03 2009
+++ rat/lonwrapper.pm	Wed Oct 21 22:46:31 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Wrapper for external and binary files as standalone resources
 #
-# $Id: lonwrapper.pm,v 1.33 2009/05/27 16:55:03 www Exp $
+# $Id: lonwrapper.pm,v 1.34 2009/10/21 22:46:31 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -131,6 +131,7 @@
 #
 	if ($is_ext) {
 	    $ENV{'QUERY_STRING'}=~s/(^|\&)symb=[^\&]*/$1/;
+            $ENV{'QUERY_STRING'} =~ s/\&$//;  
 	}
 	$url.=(($url=~/\?/)?'&':'?').$ENV{'QUERY_STRING'}; 
 	# reappend the query arguments