[LON-CAPA-cvs] cvs: loncom / lonsql

matthew lon-capa-cvs@mail.lon-capa.org
Fri, 05 Jul 2002 15:08:00 -0000


matthew		Fri Jul  5 11:08:00 2002 EDT

  Modified files:              
    /loncom	lonsql 
  Log:
  Removed superflous re-escaping of results.  The offending call to escape 
  resulted in there being no '&' symbols in the returned file.  lond 
  translates '&' to "\n" when it writes the file.  lonsearchcat expects
  one record per line.
  
  
Index: loncom/lonsql
diff -u loncom/lonsql:1.49 loncom/lonsql:1.50
--- loncom/lonsql:1.49	Mon Jun 24 10:22:05 2002
+++ loncom/lonsql	Fri Jul  5 11:07:59 2002
@@ -3,7 +3,7 @@
 # The LearningOnline Network
 # lonsql - LON TCP-MySQL-Server Daemon for handling database requests.
 #
-# $Id: lonsql,v 1.49 2002/06/24 14:22:05 www Exp $
+# $Id: lonsql,v 1.50 2002/07/05 15:07:59 matthew Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -493,9 +493,9 @@
 # ------------------------------------------------------------ end of sql query
 	   }
 
-            # result does need to be escaped
-
-            $result=&escape($result);
+            # result does not need to be escaped because it has already been
+            # escaped.
+            #$result=&escape($result);
 
 	    # reply with result, append \n unless already there