continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r552485 - /maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
Date Mon, 02 Jul 2007 13:01:55 GMT
Author: evenisse
Date: Mon Jul  2 06:01:53 2007
New Revision: 552485

URL: http://svn.apache.org/viewvc?view=rev&rev=552485
Log:
[CONTINUUM-530] HTML encode the build output

Modified:
    maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java

Modified: maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
URL: http://svn.apache.org/viewvc/maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java?view=diff&rev=552485&r1=552484&r2=552485
==============================================================================
--- maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
(original)
+++ maven/continuum/trunk/continuum-webapp/src/main/java/org/apache/maven/continuum/web/action/BuildResultAction.java
Mon Jul  2 06:01:53 2007
@@ -20,6 +20,7 @@
  */
 
 import com.opensymphony.webwork.ServletActionContext;
+import org.apache.commons.lang.StringEscapeUtils;
 import org.apache.maven.continuum.ContinuumException;
 import org.apache.maven.continuum.configuration.ConfigurationException;
 import org.apache.maven.continuum.model.project.BuildResult;
@@ -84,7 +85,7 @@
 
         if ( buildOutputFile.exists() )
         {
-            buildOutput = FileUtils.fileRead( buildOutputFile );
+            buildOutput = StringEscapeUtils.escapeHtml( FileUtils.fileRead( buildOutputFile
) );
         }
 
         state = StateGenerator.generate( buildResult.getState(), ServletActionContext.getRequest().getContextPath()
);



Mime
View raw message