[LON-CAPA-cvs] cvs: loncom /publisher londiff.pm

stredwic lon-capa-cvs@mail.lon-capa.org
Wed, 29 May 2002 18:23:58 -0000


stredwic		Wed May 29 14:23:58 2002 EDT

  Modified files:              
    /loncom/publisher	londiff.pm 
  Log:
  See Bug 90.  Update QUERY_STRING updates to using get_unprocessed_cgi.
  
  
Index: loncom/publisher/londiff.pm
diff -u loncom/publisher/londiff.pm:1.7 loncom/publisher/londiff.pm:1.8
--- loncom/publisher/londiff.pm:1.7	Thu Dec 13 09:02:54 2001
+++ loncom/publisher/londiff.pm	Wed May 29 14:23:58 2002
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to show differences between file versions
 #
-# $Id: londiff.pm,v 1.7 2001/12/13 14:02:54 harris41 Exp $
+# $Id: londiff.pm,v 1.8 2002/05/29 18:23:58 stredwic Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -62,18 +62,8 @@
 
 # Get query string for limited number of parameters
 
-    foreach (split(/&/,$ENV{'QUERY_STRING'})) {
-       my ($name, $value) = split(/=/,$_);
-       $value =~ tr/+/ /;
-       $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg;
-       if (($name eq 'filename') || ($name eq 'versiontwo') || 
-           ($name eq 'versionone')) {
-           unless ($ENV{'form.'.$name}) {
-              $ENV{'form.'.$name}=$value;
-	   }
-       }
-    }
-
+   &Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},
+                                       ['filename','versiontwo','versionone']);
 # Get the files
 
   my $cuname=$ENV{'user.name'};