You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by de...@apache.org on 2015/06/28 15:48:33 UTC

svn commit: r1688013 - /uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/webapp/root/file.pager.jsp

Author: degenaro
Date: Sun Jun 28 13:48:33 2015
New Revision: 1688013

URL: http://svn.apache.org/r1688013
Log:
UIMA-4488 DUCC Web Server (WS) file pager not working when data comprises "<" and ">"

Modified:
    uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/webapp/root/file.pager.jsp

Modified: uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/webapp/root/file.pager.jsp
URL: http://svn.apache.org/viewvc/uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/webapp/root/file.pager.jsp?rev=1688013&r1=1688012&r2=1688013&view=diff
==============================================================================
--- uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/webapp/root/file.pager.jsp (original)
+++ uima/sandbox/uima-ducc/trunk/uima-ducc-web/src/main/webapp/root/file.pager.jsp Sun Jun 28 13:48:33 2015
@@ -115,7 +115,9 @@ under the License.
             url : url,
             success : function (data) 
             {
-                $("#log_file_page_area").html(data);
+                data = data.replace(/</g, "&lt"); 
+                data = data.replace(/>/g, "&gt"); 
+            	$("#log_file_page_area").html(data);
             }
         });
     }
@@ -135,6 +137,8 @@ under the License.
             url : url,
             success : function (data) 
             {
+            	data = data.replace(/</g, "&lt"); 
+                data = data.replace(/>/g, "&gt"); 
                 $("#log_file_page_area").html(data);
             }
         });