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);
             }
         });


Reply via email to