]> matita.cs.unibo.it Git - helm.git/commitdiff
Done for URLs for DTDs the same thing previously done for stylesheets
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 5 Feb 2001 17:45:32 +0000 (17:45 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 5 Feb 2001 17:45:32 +0000 (17:45 +0000)
helm/http_getter/http_getter.pl.in

index 1c7359b6c885c6c0c79665b63b5fe5cff4e0185c..0ea2c02e44456c8d6960e3816a1be7b0cb13e92e 100755 (executable)
@@ -223,7 +223,12 @@ EOT
                print "Using local copy\n";
                open(FD, $filename) or die "Cannot open $filename\n";
                $cont = "";
-               while(<FD>) { $cont .= $_; }
+               while(<FD>) {
+                # Vary bad heuristic for substituion of absolute URLs
+                # for relative ones
+               s/ENTITY (.*) SYSTEM\s+"/ENTITY $1 SYSTEM "$myownurl\/getdtd?uri=/g;
+               $cont .= $_;
+              }
                close(FD);
                answer($c,$cont);
             } else {