[LON-CAPA-cvs] cvs: loncom(version_2_10_X) /interface loncommon.pm

raeburn raeburn@source.lon-capa.org
Tue, 18 May 2010 01:24:43 -0000


raeburn		Tue May 18 01:24:43 2010 EDT

  Modified files:              (Branch: version_2_10_X)
    /loncom/interface	loncommon.pm 
  Log:
  - Backport 1.960.
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.948.2.3 loncom/interface/loncommon.pm:1.948.2.4
--- loncom/interface/loncommon.pm:1.948.2.3	Tue May 18 01:11:23 2010
+++ loncom/interface/loncommon.pm	Tue May 18 01:24:42 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.948.2.3 2010/05/18 01:11:23 raeburn Exp $
+# $Id: loncommon.pm,v 1.948.2.4 2010/05/18 01:24:42 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3701,10 +3701,13 @@
     }
     if (!$symb) { $symb=&Apache::lonnet::symbread(); }
     $symb=&escape($symb);
-    if ($target) { $target="target=\"$target\""; }
-    return '<a href="/adm/grades?&command=submission&'.
-	'symb='.$symb.'&student='.$uname.
-	'&userdom='.$udom.'" '.$target.'>'.$text.'</a>';
+    if ($target) { $target=" target=\"$target\""; }
+    return
+        '<a href="/adm/grades?command=submission'.
+        '&amp;symb='.$symb.
+        '&amp;student='.$uname.
+        '&amp;userdom='.$udom.'"'.
+        $target.'>'.$text.'</a>';
 }
 ##############################################