[LON-CAPA-cvs] cvs: loncom /xml lontexconvert.pm
raeburn
raeburn@source.lon-capa.org
Mon, 06 Jun 2011 16:08:46 -0000
raeburn Mon Jun 6 16:08:46 2011 EDT
Modified files:
/loncom/xml lontexconvert.pm
Log:
- Bug 5925.
- Simplify internal HEAD request for /cgi-bin/mimetex.cgi by using loopback.
Index: loncom/xml/lontexconvert.pm
diff -u loncom/xml/lontexconvert.pm:1.107 loncom/xml/lontexconvert.pm:1.108
--- loncom/xml/lontexconvert.pm:1.107 Fri May 27 18:34:07 2011
+++ loncom/xml/lontexconvert.pm Mon Jun 6 16:08:45 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# TeX Conversion Module
#
-# $Id: lontexconvert.pm,v 1.107 2011/05/27 18:34:07 raeburn Exp $
+# $Id: lontexconvert.pm,v 1.108 2011/06/06 16:08:45 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -247,12 +247,10 @@
sub mimetex_valign {
my ($esc_texstring)=@_;
my $valign = 0;
- my $lonhost = $Apache::lonnet::perlvar{'lonHostID'};
- my $hostname = &Apache::lonnet::hostname($lonhost);
my $path = '/cgi-bin/mimetex.cgi?'.$esc_texstring;
my $socket;
&Apache::lonxml::start_alarm();
- $socket = IO::Socket::INET->new(PeerAddr => $hostname,
+ $socket = IO::Socket::INET->new(PeerAddr => 'localhost',
PeerPort => 'http(80)',
Proto => 'tcp');
if ($socket) {