From 4010da39ff700f6900865995f98eeab7bad755a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Euzenat?= <Jerome.Euzenat@inria.fr>
Date: Sat, 10 Feb 2007 00:06:32 +0000
Subject: [PATCH] - suppressed the possibility to browse files with the HTTP
 server

---
 src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java b/src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java
index cc082d65..660dd103 100644
--- a/src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java
+++ b/src/fr/inrialpes/exmo/align/service/HTMLAServProfile.java
@@ -213,7 +213,8 @@ public class HTMLAServProfile implements AlignmentServiceProfile {
 	} else if ( oper.equals( "html" ) ){
 	    return htmlAnswer( uri, uri.substring(start), header, params );
 	} else {
-	    return serveFile( uri, header, new File("."), true );
+	    //return serveFile( uri, header, new File("."), true );
+	    return new Response( HTTP_OK, MIME_HTML, "<html><head></head><body><h1>Unkown commad</h1><hr /><center><small><a href=\".\">Alignment server administration</a></small></center></body></html>" );
 	}
     }
 
@@ -452,8 +453,8 @@ public class HTMLAServProfile implements AlignmentServiceProfile {
 	    if ( answer instanceof ErrorMsg ) {
 		msg = testErrorMessages( answer );
 	    } else {
-		msg = "<h1>Alignment loaded</h1>The alignment id is ";
-		msg += answer.getContent();
+		msg = "<h1>Alignment loaded</h1>";
+		msg += displayAnswer( answer );
 	    }
 	} else if ( perf.equals("prmtranslate") ) {
 	} else if ( perf.equals("translate") ) {
-- 
GitLab