[LON-CAPA-cvs] cvs: loncom /html/res/adm/pages menu.html
www
lon-capa-cvs@mail.lon-capa.org
Fri, 06 Jun 2003 00:42:14 -0000
www Thu Jun 5 20:42:14 2003 EDT
Modified files:
/loncom/html/res/adm/pages menu.html
Log:
Make go() a POST submission - seems to be able to overwrite external URLs.
Index: loncom/html/res/adm/pages/menu.html
diff -u loncom/html/res/adm/pages/menu.html:1.100 loncom/html/res/adm/pages/menu.html:1.101
--- loncom/html/res/adm/pages/menu.html:1.100 Wed May 28 09:34:45 2003
+++ loncom/html/res/adm/pages/menu.html Thu Jun 5 20:42:14 2003
@@ -4,7 +4,7 @@
Remote Control
//
-// $Id: menu.html,v 1.100 2003/05/28 13:34:45 www Exp $
+// $Id: menu.html,v 1.101 2003/06/06 00:42:14 www Exp $
//
// Copyright Michigan State University Board of Trustees
//
@@ -184,7 +184,7 @@
lonchat.close();
}
if (autologout) {
- clientwindow.window.location.href="http://"+clienthost+"/adm/logout";
+ go("/adm/logout");
}
}
@@ -285,10 +285,14 @@
statuslocked=0;
this.document['led'].src="http://"+clienthost+imgpath+"ledsend.gif";
if (url!='' && url!= null) {
- currentURL = null;
- currentSymb= null;
- clientwindow.window.location.href="http://"+clienthost+url;
- clientwindow.name='loncapaclient';
+ currentURL = null;
+ currentSymb= null;
+ this.document.server.action="http://"+clienthost+url;
+ this.document.server.postdata.value='';
+ this.document.server.command.value='';
+ this.document.server.url.value='';
+ this.document.server.postsymb.value='';
+ this.document.server.submit();
}
}